package-product/SampleServiceProvider.php
/**
     * Bootstrap the application services.
     *
     * @return void
     */
Bootstrap the application services.
@return void
Bootstrap the application services . @return void
public function boot(Request $request) {
        $this->loadViewsFrom(__DIR__ . '/Views', 'package-sample');
        require __DIR__ . "/composers.php";
        $this->publishConfig();
        $this->publishLang();
        $this->publishViews();
        $this->publishAssets();
    }
public function boot ( Request $ request ) { $ this -> loadViewsFrom ( __DIR__ . '/Views' , 'package-sample' ) ; require __DIR__ . " /composers.php " ; $ this -> publishConfig ( ) ; $ this -> publishLang ( ) ; $ this -> publishViews ( ) ; $ this -> publishAssets ( ) ; }
Bootstrap the application services.
Bootstrap the application services .
//generate context key //        $this->generateContextKey(); // load view // include view composers // publish config // publish lang // publish views // publish assets