src/Api/ApiServiceProvider.php
protected function populateRoutes(RouteCollection $routes)
    {
        $factory = $this->app->make(RouteHandlerFactory::class);

        $callback = include __DIR__.'/routes.php';
        $callback($routes, $factory);

        $this->app->make('events')->fire(
            new ConfigureApiRoutes($routes, $factory)
        );
    }
protected function populateRoutes(RouteCollection $routes)
    {
        $factory = $this->app->make(RouteHandlerFactory::class);

        $callback = include __DIR__.'/routes.php';
        $callback($routes, $factory);

        $this->app->make('events')->fire(
            new ConfigureApiRoutes($routes, $factory)
        );
    }
protected function populateRoutes ( RouteCollection $ routes ) { $ factory = $ this -> app -> make ( RouteHandlerFactory :: class ) ; $ callback = include __DIR__ . '/routes.php' ; $ callback ( $ routes , $ factory ) ; $ this -> app -> make ( 'events' ) -> fire ( new ConfigureApiRoutes ( $ routes , $ factory ) ) ; }
Populate the API routes.

@param RouteCollection $routes
Populate the API routes .