Artisan.page

make:component

Create a new view component class

Terminal
php artisan make:component [-f|--force] [--inline] [--view] [--test] [--pest] [--] <name>

Options

forceOptional

Create the class even if the component already exists

inlineOptional

Create a component that renders an inline view

pestOptional

Generate an accompanying Pest test for the Component

testOptional

Generate an accompanying PHPUnit test for the Component

viewOptional

Create an anonymous component with only a view

Arguments

nameRequired

The name of the component