Skip to content

Commit 9b54692

Browse files
authored
Adds make:view command documentation (#9013)
1 parent c3a2cb2 commit 9b54692

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

views.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ Our Breeze and Jetstream [starter kits](/docs/{{version}}/starter-kits) give you
4848
<a name="creating-and-rendering-views"></a>
4949
## Creating & Rendering Views
5050

51-
You may create a view by placing a file with the `.blade.php` extension in your application's `resources/views` directory. The `.blade.php` extension informs the framework that the file contains a [Blade template](/docs/{{version}}/blade). Blade templates contain HTML as well as Blade directives that allow you to easily echo values, create "if" statements, iterate over data, and more.
51+
You may create a view by placing a file with the `.blade.php` extension in your application's `resources/views` directory or by using the `make:view` Artisan command:
52+
53+
```shell
54+
php artisan make:view greeting
55+
```
56+
57+
The `.blade.php` extension informs the framework that the file contains a [Blade template](/docs/{{version}}/blade). Blade templates contain HTML as well as Blade directives that allow you to easily echo values, create "if" statements, iterate over data, and more.
5258

5359
Once you have created a view, you may return it from one of your application's routes or controllers using the global `view` helper:
5460

0 commit comments

Comments
 (0)