src/ApiHelperServiceProvider.php
/**
     * Bootstrap the application services.
     *
     * @return void
     */
Bootstrap the application services.
@return void
Bootstrap the application services . @return void
public function boot()
    {
        $this->publishes([
            __DIR__.'/config/api-helper.php' => config_path('api-helper.php'),
        ], 'api-helper');
        if (config('api-helper.api_doc', true) !== false) {
            $this->loadRoutesFrom(__DIR__ . '/routes/api.php');
        }
        $this->loadViewsFrom(__DIR__ . '/views', 'api_helper');
        $this->publishes([
            __DIR__ . '/assets' => public_path('vendor/api_helper'),
        ], 'api-helper');
        $this->viewComposer();
    }
public function boot ( ) { $ this -> publishes ( [ __DIR__ . '/config/api-helper.php' => config_path ( 'api-helper.php' ) , ] , 'api-helper' ) ; if ( config ( 'api-helper.api_doc' , true ) !== false ) { $ this -> loadRoutesFrom ( __DIR__ . '/routes/api.php' ) ; } $ this -> loadViewsFrom ( __DIR__ . '/views' , 'api_helper' ) ; $ this -> publishes ( [ __DIR__ . '/assets' => public_path ( 'vendor/api_helper' ) , ] , 'api-helper' ) ; $ this -> viewComposer ( ) ; }
Bootstrap the application services.
Bootstrap the application services .
// Publish the config file // Load routes // Load views // Publish assets // View Share