laravel eloquent observer creating code example
Example 1: laravel create observer
php artisan make:observer UserObserver --model=User
Example 2: php artisan make model
php artisan make:model Flight
php artisan make:observer UserObserver --model=User
php artisan make:model Flight