laravel observer saving code example Example: laravel observer php artisan make:observer UserObserver --model=User