src/ShortcodesServiceProvider.php
public function enableCompiler()
    {
        // Check if the compiler is auto enabled
        $state = $this->app['config']->get('laravel-shortcodes::enabled', false);

        // Enable when needed
        if ($state) {
            $this->app['shortcode.compiler']->enable();
        }
    }
public function enableCompiler()
    {
        // Check if the compiler is auto enabled
        $state = $this->app['config']->get('laravel-shortcodes::enabled', false);

        // Enable when needed
        if ($state) {
            $this->app['shortcode.compiler']->enable();
        }
    }
public function enableCompiler ( ) { // Check if the compiler is auto enabled $ state = $ this -> app [ 'config' ] -> get ( 'laravel-shortcodes::enabled' , false ) ; // Enable when needed if ( $ state ) { $ this -> app [ 'shortcode.compiler' ] -> enable ( ) ; } }
Enable the compiler.
Enable the compiler .