src/ViewComposers/SidebarComposer.php
public function compose(View $view)
    {
        $this->sidebar->loadItemsFromConfig('arcanesoft.foundation.sidebar.items');
        $this->sidebar->setCurrent(
            Arr::get($view->getData(), 'current_page', '')
        );
    }
public function compose(View $view)
    {
        $this->sidebar->loadItemsFromConfig('arcanesoft.foundation.sidebar.items');
        $this->sidebar->setCurrent(
            Arr::get($view->getData(), 'current_page', '')
        );
    }
Bind data to the view.

@param  \Illuminate\View\View  $view