From b00269b2dd613fb1daf8e7740822053df29b0eb1 Mon Sep 17 00:00:00 2001 From: Syed Abidur Rahman Date: Mon, 11 Mar 2019 12:46:40 +0600 Subject: [PATCH] Another blade directive has been added. --- src/Blades.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Blades.php b/src/Blades.php index 898af8c..39294fb 100644 --- a/src/Blades.php +++ b/src/Blades.php @@ -20,7 +20,7 @@ public function runCompiles() }); Blade::directive('endUserCan', function () { - return ''; + return ''; }); Blade::directive('roleCan', function ($expression) { @@ -32,7 +32,7 @@ public function runCompiles() }); Blade::directive('endRoleCan', function () { - return ''; + return ''; }); Blade::directive('allows', function ($expression) { @@ -44,7 +44,11 @@ public function runCompiles() }); Blade::directive('endAllows', function () { - return ''; + return ''; + }); + + Blade::directive('otherwise', function () { + return ""; }); } }