I\'m new to Laravel and ORM\'s in general. How could i hook into Eloquent to fire code before and after a save of any model? I know i can do the following for specific model
Using laravel models own life cycle events may solve this easy
/** * model life cycle event listeners */ public static function boot(){ parent::boot(); static::creating(function ($instance){ // }); static::created(function ($instance){ // }); }