src/LaratrustRegistersBladeDirectives.php
protected function registerWithoutParenthesis()
    {
        // Call to Laratrust::hasRole.
        Blade::directive('role', function ($expression) {
            return "<?php if (app('laratrust')->hasRole{$expression}) : ?>";
        });

        // Call to Laratrust::can.
        Blade::directive('permission', function ($expression) {
            return "<?php if (app('laratrust')->can{$expression}) : ?>";
        });

        // Call to Laratrust::ability.
        Blade::directive('ability', function ($expression) {
            return "<?php if (app('laratrust')->ability{$expression}) : ?>";
        });

        // Call to Laratrust::canAndOwns.
        Blade::directive('canAndOwns', function ($expression) {
            return "<?php if (app('laratrust')->canAndOwns{$expression}) : ?>";
        });

        // Call to Laratrust::hasRoleAndOwns.
        Blade::directive('hasRoleAndOwns', function ($expression) {
            return "<?php if (app('laratrust')->hasRoleAndOwns{$expression}) : ?>";
        });
    }
protected function registerWithoutParenthesis()
    {
        // Call to Laratrust::hasRole.
        Blade::directive('role', function ($expression) {
            return "<?php if (app('laratrust')->hasRole{$expression}) : ?>";
        });

        // Call to Laratrust::can.
        Blade::directive('permission', function ($expression) {
            return "<?php if (app('laratrust')->can{$expression}) : ?>";
        });

        // Call to Laratrust::ability.
        Blade::directive('ability', function ($expression) {
            return "<?php if (app('laratrust')->ability{$expression}) : ?>";
        });

        // Call to Laratrust::canAndOwns.
        Blade::directive('canAndOwns', function ($expression) {
            return "<?php if (app('laratrust')->canAndOwns{$expression}) : ?>";
        });

        // Call to Laratrust::hasRoleAndOwns.
        Blade::directive('hasRoleAndOwns', function ($expression) {
            return "<?php if (app('laratrust')->hasRoleAndOwns{$expression}) : ?>";
        });
    }
protected function registerWithoutParenthesis ( ) { // Call to Laratrust::hasRole. Blade :: directive ( 'role' , function ( $ expression ) { return "<?php if (app('laratrust')->hasRole{$expression}) : ?>" ; } ) ; // Call to Laratrust::can. Blade :: directive ( 'permission' , function ( $ expression ) { return "<?php if (app('laratrust')->can{$expression}) : ?>" ; } ) ; // Call to Laratrust::ability. Blade :: directive ( 'ability' , function ( $ expression ) { return "<?php if (app('laratrust')->ability{$expression}) : ?>" ; } ) ; // Call to Laratrust::canAndOwns. Blade :: directive ( 'canAndOwns' , function ( $ expression ) { return "<?php if (app('laratrust')->canAndOwns{$expression}) : ?>" ; } ) ; // Call to Laratrust::hasRoleAndOwns. Blade :: directive ( 'hasRoleAndOwns' , function ( $ expression ) { return "<?php if (app('laratrust')->hasRoleAndOwns{$expression}) : ?>" ; } ) ; }
Registers the directives without parenthesis.

@return void
Registers the directives without parenthesis .