Esempio n. 1
0
 protected static function boot()
 {
     parent::boot();
     !static::$dispatcher and static::$dispatcher = new Illuminate\Events\Dispatcher();
 }
Esempio n. 2
0
 /**
  * Attach our Auditable event observer
  * 
  * @return void
  */
 public static function boot()
 {
     parent::boot();
     self::observe(new Olsgreen\Auditable\Observer());
 }