original_string: protected function categoriesMenu() : array
      {
          if (! $this->app->bound($repository = 'category.repository.cahe')) {
              return [];
          }
  
          return $this->app->make($repository)->categoriesWithProducts()->mapWithKeys(function ($item) {
              return [$item->id => $item];
          })->all();
      }
code: protected function categoriesMenu() : array
      {
          if (! $this->app->bound($repository = 'category.repository.cahe')) {
              return [];
          }
  
          return $this->app->make($repository)->categoriesWithProducts()->mapWithKeys(function ($item) {
              return [$item->id => $item];
          })->all();
      }
code_tokens: protected function categoriesMenu ( ) : array { if ( ! $ this -> app -> bound ( $ repository = 'category.repository.cahe' ) ) { return [ ] ; } return $ this -> app -> make ( $ repository ) -> categoriesWithProducts ( ) -> mapWithKeys ( function ( $ item ) { return [ $ item -> id => $ item ] ; } ) -> all ( ) ; }
docstring: Returns the categories menu.
  
  @return array
docstring_tokens: Returns the categories menu .