src/NavigationServiceProvider.php
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);
    }
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);
    }
Register the navigation class.

@return void