Skip to content

Commit

Permalink
fix navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed May 23, 2016
1 parent 3b12275 commit 6f23e95
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
20 changes: 20 additions & 0 deletions src/Providers/PluginServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,24 @@ public function register()
PluginDeactivateCommand::class,
]);
}

public function boot()
{
\Event::listen('config.loaded', function () {
$this->registerNavigation();
}, 999);
}

protected function registerNavigation()
{
\Navigation::setFromArray([
[
'id' => 'plugins',
'title' => 'plugins::core.title',
'icon' => 'puzzle-piece',
'url' => route('backend.plugins.list'),
'priority' => 9999999,
],
]);
}
}
12 changes: 0 additions & 12 deletions src/config/sitemap.php

This file was deleted.

0 comments on commit 6f23e95

Please sign in to comment.