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

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

Arguments

  • name - The name of the class Required
php artisan make:component [--force] [--inline] [--] <name>