The Laravel Artisan Cheatsheet
A searchable, bookmarkable cheatsheet for
Laravel's
Artisan commands.
Home
ArtisanGPT
API
Laravel Version
11.x
make:class
🖥
make:class
Create a new class
Options
force
- Create the class even if the class already exists
Optional
invokable
- Generate a single method, invokable class
Optional
Arguments
name
- The name of the class
Required
php artisan make:class [-i|--invokable] [-f|--force] [--] <name>
Click to copy