Crud evetns

When you use php artisan panel:crud , other than the model and controller it will create Observers file for your model in Observers folder ,

you can put code in your Observers functions and they will run when a event like create trigger