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