Set the event dispatcher instance.
public static setEventDispatcher ( Illuminate\Events\Dispatcher $dispatcher ) : void | ||
$dispatcher | Illuminate\Events\Dispatcher | |
Результат | void |
/** * Bootstrap the application events. * * @return void */ public function boot() { Model::setConnectionResolver($this->app['lmongo']); Model::setEventDispatcher($this->app['events']); }