Completed
Push — master ( df63ff...f00cf3 )
by Iman
03:24
created
src/RouteAuthorizer.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,9 @@
 block discarded – undo
11 11
     {
12 12
         Route::matched(function (RouteMatched $eventObj) {
13 13
             $route = $eventObj->route;
14
-            if($eventObj->request->method() === 'GET')
15
-                $this->authorizeUrls($route->uri);
14
+            if($eventObj->request->method() === 'GET') {
15
+                            $this->authorizeUrls($route->uri);
16
+            }
16 17
             $this->authorizeRouteNames($route->getName());
17 18
             $this->authorizeRouteActions($route->getActionName());
18 19
         });
Please login to merge, or discard this patch.