code: protected function registerNavigation()
      {
          $this->app->singleton('navigation', function ($app) {
              $request = $app['request'];
              $events = $app['events'];
              $url = $app['url'];
              $view = $app['view'];
              $name = 'navigation::bootstrap';
  
              $navigation = new Navigation($request, $events, $url, $view, $name);
              $app->refresh('request', $navigation, 'setRequest');
  
              return $navigation;
          });
  
          $this->app->alias('navigation', Navigation::class);
      }
docs: Register the navigation class.
  
  @return void