protected function bootCustomBladeDirectives()
    {
        /** @var BladeCompiler $blade */
        $blade = $this->app['blade.compiler'];
        $blade->directive('tooltip', function ($expression) {
            return "<?php echo app('Yajra\\CMS\\View\\Directives\\TooltipDirective')->handle({$expression}); ?>";
        });

        $blade->directive('pageHeader', function ($expression) {
            return "<?php echo app('Yajra\\CMS\\View\\Directives\\PageHeaderDirective')->handle({$expression}); ?>";
        });

        $blade->directive('error', function ($expression) {
            return "<?php echo app('Yajra\\CMS\\View\\Directives\\ErrorDirective')->handle({$expression}); ?>";
        });
    }
protected function bootCustomBladeDirectives()
    {
        /** @var BladeCompiler $blade */
        $blade = $this->app['blade.compiler'];
        $blade->directive('tooltip', function ($expression) {
            return "<?php echo app('Yajra\\CMS\\View\\Directives\\TooltipDirective')->handle({$expression}); ?>";
        });

        $blade->directive('pageHeader', function ($expression) {
            return "<?php echo app('Yajra\\CMS\\View\\Directives\\PageHeaderDirective')->handle({$expression}); ?>";
        });

        $blade->directive('error', function ($expression) {
            return "<?php echo app('Yajra\\CMS\\View\\Directives\\ErrorDirective')->handle({$expression}); ?>";
        });
    }
protected function bootCustomBladeDirectives ( ) { /** @var BladeCompiler $blade */ $ blade = $ this -> app [ 'blade.compiler' ] ; $ blade -> directive ( 'tooltip' , function ( $ expression ) { return "<?php echo app('Yajra\\CMS\\View\\Directives\\TooltipDirective')->handle({$expression}); ?>" ; } ) ; $ blade -> directive ( 'pageHeader' , function ( $ expression ) { return "<?php echo app('Yajra\\CMS\\View\\Directives\\PageHeaderDirective')->handle({$expression}); ?>" ; } ) ; $ blade -> directive ( 'error' , function ( $ expression ) { return "<?php echo app('Yajra\\CMS\\View\\Directives\\ErrorDirective')->handle({$expression}); ?>" ; } ) ; }
Boot custom blade directives.
Boot custom blade directives .