src/ServiceProvider.php
/**
     * Bootstrap any application services.
     *
     * @return void
     */
Bootstrap any application services.
@return void
Bootstrap any application services . @return void
public function boot()
    {
        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'voyager-blocks-editor');
        $this->loadRoutesFrom(__DIR__ . '/../routes/web.php');
        $this->publishes([
            __DIR__.'/path/to/assets' => public_path('vendor/courier'),
        ], 'public');
        Voyager::addFormField(FormField::class);
    }
public function boot ( ) { $ this -> loadViewsFrom ( __DIR__ . '/../resources/views' , 'voyager-blocks-editor' ) ; $ this -> loadRoutesFrom ( __DIR__ . '/../routes/web.php' ) ; $ this -> publishes ( [ __DIR__ . '/path/to/assets' => public_path ( 'vendor/courier' ) , ] , 'public' ) ; Voyager :: addFormField ( FormField :: class ) ; }
Bootstrap any application services.
Bootstrap any application services .