From 9b546921226e9a9adacb74b802262291c19a93fe Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 12 Sep 2023 16:56:48 +0100 Subject: [PATCH] Adds `make:view` command documentation (#9013) --- views.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/views.md b/views.md index b73ea69dcdc..9a968cd36ad 100644 --- a/views.md +++ b/views.md @@ -48,7 +48,13 @@ Our Breeze and Jetstream [starter kits](/docs/{{version}}/starter-kits) give you ## Creating & Rendering Views -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. +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: + +```shell +php artisan make:view greeting +``` + +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. Once you have created a view, you may return it from one of your application's routes or controllers using the global `view` helper: