The Laravel Artisan Cheatsheet now has an API. Learn more.

make:view

Create a new view

Options

  • extension - The extension of the generated view Optional
  • force - Create the view even if the view already exists Optional
  • test - Generate an accompanying PHPUnit test for the View Optional
  • pest - Generate an accompanying Pest test for the View Optional

Arguments

  • name - The name of the view Required
php artisan make:view [--extension [EXTENSION]] [-f|--force] [--test] [--pest] [--] <name>