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 ?>";
});
}