code: public function compose(View $view)
      {
          $this->sidebar->loadItemsFromConfig('arcanesoft.foundation.sidebar.items');
          $this->sidebar->setCurrent(
              Arr::get($view->getData(), 'current_page', '')
          );
      }
docs: Bind data to the view.
  
  @param  \Illuminate\View\View  $view