Commit bc368392 authored by Nicolas Widart's avatar Nicolas Widart

Adding sidebar composr

parent 5fa98e55
<?php namespace Modules\Media\Composers;
use Illuminate\Contracts\View\View;
use Modules\Core\Composers\BaseSidebarViewComposer;
class SidebarViewComposer extends BaseSidebarViewComposer
{
public function compose(View $view)
{
$view->items->put('medias', [
'weight' => 6,
'request' => "*/$view->prefix/media",
'route' => 'dashboard.index',
'icon-class' => 'fa fa-camera',
'title' => 'Medias',
'permission' => $this->auth->hasAccess('dashboard.index')
]);
}
}
<?php
View::composer('core::partials.sidebar-nav', 'Modules\Media\Composers\SidebarViewComposer');
......@@ -15,3 +15,5 @@ View::addNamespace('media', __DIR__ . '/Resources/views/');
Lang::addNamespace('media', __DIR__ . '/Resources/lang/');
Config::addNamespace('media', __DIR__ . '/Config/');
require __DIR__ . '/composers.php';
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