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