make:component

Create a new view component class

Options

  • force - Create the class even if the component already exists Optional
  • inline - Create a component that renders an inline view Optional
  • path - The location where the component view should be created Required
  • pest - Generate an accompanying Pest test for the Component Optional
  • phpunit - Generate an accompanying PHPUnit test for the Component Optional
  • test - Generate an accompanying Test test for the Component Optional
  • view - Create an anonymous component with only a view Optional

Arguments

  • name - The name of the component Required
php artisan make:component [--inline] [--view] [--path PATH] [-f|--force] [--test] [--pest] [--phpunit] [--] <name>