@@ -9,9 +9,9 @@ |
||
| 9 | 9 | { |
| 10 | 10 | public function authorizeMatchedRoutes(): void |
| 11 | 11 | { |
| 12 | - Route::matched(function (RouteMatched $eventObj) { |
|
| 12 | + Route::matched(function(RouteMatched $eventObj) { |
|
| 13 | 13 | $route = $eventObj->route; |
| 14 | - if($eventObj->request->method() === 'GET') |
|
| 14 | + if ($eventObj->request->method() === 'GET') |
|
| 15 | 15 | $this->authorizeUrls($route->uri); |
| 16 | 16 | $this->authorizeRouteNames($route->getName()); |
| 17 | 17 | $this->authorizeRouteActions($route->getActionName()); |
@@ -11,8 +11,9 @@ |
||
| 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 | }); |