public function boot()
    {
        $this->publishes([
            __DIR__ . '/config/javascript.php' => config_path('javascript.php')
        ]);

        if (class_exists('Illuminate\Foundation\AliasLoader')) {
            AliasLoader::getInstance()->alias(
                'JavaScript',
                'Laracasts\Utilities\JavaScript\JavaScriptFacade'
            );
        } else {
            class_alias('Laracasts\Utilities\JavaScript\JavaScriptFacade', 'JavaScript');
        }
    }
public function boot()
    {
        $this->publishes([
            __DIR__ . '/config/javascript.php' => config_path('javascript.php')
        ]);

        if (class_exists('Illuminate\Foundation\AliasLoader')) {
            AliasLoader::getInstance()->alias(
                'JavaScript',
                'Laracasts\Utilities\JavaScript\JavaScriptFacade'
            );
        } else {
            class_alias('Laracasts\Utilities\JavaScript\JavaScriptFacade', 'JavaScript');
        }
    }
public function boot ( ) { $ this -> publishes ( [ __DIR__ . '/config/javascript.php' => config_path ( 'javascript.php' ) ] ) ; if ( class_exists ( 'Illuminate\Foundation\AliasLoader' ) ) { AliasLoader :: getInstance ( ) -> alias ( 'JavaScript' , 'Laracasts\Utilities\JavaScript\JavaScriptFacade' ) ; } else { class_alias ( 'Laracasts\Utilities\JavaScript\JavaScriptFacade' , 'JavaScript' ) ; } }
Publish the plugin configuration.
Publish the plugin configuration .