Are there callbacks in Laravel like:
afterSave() beforeSave() etc
I searched but found nothing. If there are no such things - what is best
Adding in an example for Laravel 4:
class Page extends Eloquent { public static function boot() { parent::boot(); static::creating(function($page) { // do stuff }); static::updating(function($page) { // do stuff }); } }