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