src/MentionServiceProvider.php
public function boot()
    {
        $config = realpath(__DIR__.'/../resources/config/mentions.php');
        $views  = realpath(__DIR__.'/../resources/views');
        $script = realpath(__DIR__.'/../resources/assets');

        $this->publishes([
            $config => config_path('mentions.php'),
            $views  => base_path('resources/views/vendor/mentions'),
            $script => public_path('js'),
        ]);

        $this->loadViewsFrom(__DIR__.'/../resources/views', 'mentions');

         if (! $this->app->routesAreCached()) {
            require __DIR__.'/Http/routes.php';
        }
    }
public function boot()
    {
        $config = realpath(__DIR__.'/../resources/config/mentions.php');
        $views  = realpath(__DIR__.'/../resources/views');
        $script = realpath(__DIR__.'/../resources/assets');

        $this->publishes([
            $config => config_path('mentions.php'),
            $views  => base_path('resources/views/vendor/mentions'),
            $script => public_path('js'),
        ]);

        $this->loadViewsFrom(__DIR__.'/../resources/views', 'mentions');

         if (! $this->app->routesAreCached()) {
            require __DIR__.'/Http/routes.php';
        }
    }
public function boot ( ) { $ config = realpath ( __DIR__ . '/../resources/config/mentions.php' ) ; $ views = realpath ( __DIR__ . '/../resources/views' ) ; $ script = realpath ( __DIR__ . '/../resources/assets' ) ; $ this -> publishes ( [ $ config => config_path ( 'mentions.php' ) , $ views => base_path ( 'resources/views/vendor/mentions' ) , $ script => public_path ( 'js' ) , ] ) ; $ this -> loadViewsFrom ( __DIR__ . '/../resources/views' , 'mentions' ) ; if ( ! $ this -> app -> routesAreCached ( ) ) { require __DIR__ . '/Http/routes.php' ; } }
Publishes all the assets this package needs to function and load all routes
@return [type] [description]
Publishes all the assets this package needs to function and load all routes