src/MarkdownServiceProvider.php
protected function registerMarkdownBladeEngine($resolver)
    {
        $app = $this->app;

        $app->singleton('markdown.blade.compiler', function ($app) {
            $cache = $app['config']['view.compiled'];

            return new MarkdownBladeCompiler($app['files'], $cache);
        });

        $resolver->register('markdown.blade', function () use ($app) {
            return new MarkdownEngine($app['markdown.blade.compiler'], $app['files']);
        });

        $app['view']->addExtension('md.blade.php', 'markdown.blade');
    }
protected function registerMarkdownBladeEngine($resolver)
    {
        $app = $this->app;

        $app->singleton('markdown.blade.compiler', function ($app) {
            $cache = $app['config']['view.compiled'];

            return new MarkdownBladeCompiler($app['files'], $cache);
        });

        $resolver->register('markdown.blade', function () use ($app) {
            return new MarkdownEngine($app['markdown.blade.compiler'], $app['files']);
        });

        $app['view']->addExtension('md.blade.php', 'markdown.blade');
    }
protected function registerMarkdownBladeEngine ( $ resolver ) { $ app = $ this -> app ; $ app -> singleton ( 'markdown.blade.compiler' , function ( $ app ) { $ cache = $ app [ 'config' ] [ 'view.compiled' ] ; return new MarkdownBladeCompiler ( $ app [ 'files' ] , $ cache ) ; } ) ; $ resolver -> register ( 'markdown.blade' , function ( ) use ( $ app ) { return new MarkdownEngine ( $ app [ 'markdown.blade.compiler' ] , $ app [ 'files' ] ) ; } ) ; $ app [ 'view' ] -> addExtension ( 'md.blade.php' , 'markdown.blade' ) ; }
Register the Markdown Blade engine implementation.

@return void
Register the Markdown Blade engine implementation .