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