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

        Blade::directive('markdown', function($markdown) {
            if ($markdown) {
                return "<?php echo app('Indal\Markdown\Parser')->parse($markdown); ?>";
            }

            return "<?php app('Indal\Markdown\Parser')->begin() ?>";
        });

        Blade::directive('endmarkdown', function () {
            return "<?php echo app('Indal\Markdown\Parser')->end() ?>";
        });
    }
public function boot()
    {
        $this->publishes([
            __DIR__.'/../config/markdown.php' => config_path('markdown.php'),
        ]);

        Blade::directive('markdown', function($markdown) {
            if ($markdown) {
                return "<?php echo app('Indal\Markdown\Parser')->parse($markdown); ?>";
            }

            return "<?php app('Indal\Markdown\Parser')->begin() ?>";
        });

        Blade::directive('endmarkdown', function () {
            return "<?php echo app('Indal\Markdown\Parser')->end() ?>";
        });
    }
public function boot ( ) { $ this -> publishes ( [ __DIR__ . '/../config/markdown.php' => config_path ( 'markdown.php' ) , ] ) ; Blade :: directive ( 'markdown' , function ( $ markdown ) { if ( $ markdown ) { return "<?php echo app('Indal\Markdown\Parser')->parse($markdown); ?>" ; } return "<?php app('Indal\Markdown\Parser')->begin() ?>" ; } ) ; Blade :: directive ( 'endmarkdown' , function ( ) { return "<?php echo app('Indal\Markdown\Parser')->end() ?>" ; } ) ; }
Bootstrap the Markdown Blade directives and publish
the config file.

@return void
Bootstrap the Markdown Blade directives and publish the config file .