Exemplo n.º 1
0
 /**
  * boot
  * observing model
  *
  */
 public static function boot()
 {
     parent::boot();
     Sale::observe(new SaleObserver());
 }
Exemplo n.º 2
0
 /**
  * boot
  * observing model
  *
  */
 public static function boot()
 {
     parent::boot();
     Purchase::observe(new PurchaseObserver());
 }