Commit 7975809d authored by Nicolas Widart's avatar Nicolas Widart

Playing with events

parent 912d771e
......@@ -23,6 +23,10 @@ class CoreServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->booted(function ($app)
{
$app['events']->fire('Modules\User\Events\RegisterSidebarMenuItemEvent');
});
}
/**
......
<?php
View::creator('core::partials.sidebar-nav', 'Modules\Core\Composers\SidebarViewCreator');
View::composer('core::partials.sidebar-nav', 'Modules\Core\Composers\SidebarViewComposer');
Event::listen('modules.load.start', function()
{
// $modules = Module::enabled();
// dd($modules);
});
Event::listen('modules.load.end', function()
{
// $modules = Module::enabled();
// dd($modules);
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment