Laratrust\LaratrustRegistersBladeDirectives::registerClosingDirectives PHP Method

registerClosingDirectives() protected method

Registers the closing directives
protected registerClosingDirectives ( ) : void
return void
    protected function registerClosingDirectives()
    {
        Blade::directive('endrole', function () {
            return "<?php endif; // app('laratrust')->hasRole ?>";
        });
        Blade::directive('endpermission', function () {
            return "<?php endif; // app('laratrust')->can ?>";
        });
        Blade::directive('endability', function () {
            return "<?php endif; // app('laratrust')->ability ?>";
        });
    }