public function boot()
    {
        $configFile = realpath(__DIR__ . '/../config/json-api.php');

        $this->mergeConfigFrom($configFile, 'json-api');
        $this->publishes([
            $configFile => config_path('json-api.php'),
        ]);

        if (config('json-api.routes.configure', false)) {
            if (!$this->app->routesAreCached()) {
                Route::group([], function (Router $router) {
                    require __DIR__ . '/../routes/api.php';
                });
            }
        }
    }
public function boot()
    {
        $configFile = realpath(__DIR__ . '/../config/json-api.php');

        $this->mergeConfigFrom($configFile, 'json-api');
        $this->publishes([
            $configFile => config_path('json-api.php'),
        ]);

        if (config('json-api.routes.configure', false)) {
            if (!$this->app->routesAreCached()) {
                Route::group([], function (Router $router) {
                    require __DIR__ . '/../routes/api.php';
                });
            }
        }
    }
public function boot ( ) { $ configFile = realpath ( __DIR__ . '/../config/json-api.php' ) ; $ this -> mergeConfigFrom ( $ configFile , 'json-api' ) ; $ this -> publishes ( [ $ configFile => config_path ( 'json-api.php' ) , ] ) ; if ( config ( 'json-api.routes.configure' , false ) ) { if ( ! $ this -> app -> routesAreCached ( ) ) { Route :: group ( [ ] , function ( Router $ router ) { require __DIR__ . '/../routes/api.php' ; } ) ; } } }
boot with router
boot with router