Skip to content

Commit

Permalink
Adds make:view command documentation (#9013)
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro authored Sep 12, 2023
1 parent c3a2cb2 commit 9b54692
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion views.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ Our Breeze and Jetstream [starter kits](/docs/{{version}}/starter-kits) give you
<a name="creating-and-rendering-views"></a>
## 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:

Expand Down

0 comments on commit 9b54692

Please sign in to comment.