/** * Listen to view composing events * * @return void */ protected function listenViewComposing() { $this->app['events']->listen('composing:*', function ($data) { \Omni::setViewData($data->getData()); }); }