src/Providers/BackendServiceProvider.php
/**
     * Bootstrap the application services.
     *
     * @return void
     */
Bootstrap the application services.
@return void
Bootstrap the application services . @return void
public function boot()
    {
        if (! $this->app->routesAreCached()) {
            require __DIR__.'/../routes.php';
        }
        $this->loadViewsFrom(dirname(__DIR__).'/resources/views', 'backend');
        $this->publishes([
            __DIR__.'/../resources/assets' => public_path('packages/nhiepphong/assets'),
            dirname(__DIR__).'/resources/views' => base_path('resources/views/vendor/backend'),
        ], 'public');
        View::share('assetURL', asset('packages/nhiepphong/assets') . "/");
        define("ROOT_ASSET", asset('packages/nhiepphong/assets') . "/");
    }
public function boot ( ) { if ( ! $ this -> app -> routesAreCached ( ) ) { require __DIR__ . '/../routes.php' ; } $ this -> loadViewsFrom ( dirname ( __DIR__ ) . '/resources/views' , 'backend' ) ; $ this -> publishes ( [ __DIR__ . '/../resources/assets' => public_path ( 'packages/nhiepphong/assets' ) , dirname ( __DIR__ ) . '/resources/views' => base_path ( 'resources/views/vendor/backend' ) , ] , 'public' ) ; View :: share ( 'assetURL' , asset ( 'packages/nhiepphong/assets' ) . " / " ) ; define ( " ROOT_ASSET " , asset ( 'packages/nhiepphong/assets' ) . " / " ) ; }
Bootstrap the application services.
Bootstrap the application services .
//View //Assets //Run cmd: php artisan vendor:publish --tag=public --force