/** * boot * observing model * */ public static function boot() { parent::boot(); Purchase::observe(new PurchaseObserver()); }