@@ -29,11 +29,11 @@ |
||
| 29 | 29 | { |
| 30 | 30 | $this->registerPolicies(); |
| 31 | 31 | |
| 32 | - Route::group(['prefix' => 'v1', 'middleware' => 'api'], function () { |
|
| 32 | + Route::group([ 'prefix' => 'v1', 'middleware' => 'api' ], function() { |
|
| 33 | 33 | Passport::routes(); |
| 34 | 34 | }); |
| 35 | 35 | |
| 36 | - Gate::define('users.view', function (User $user, $id) { |
|
| 36 | + Gate::define('users.view', function(User $user, $id) { |
|
| 37 | 37 | return $user->id == $id; |
| 38 | 38 | }); |
| 39 | 39 | } |
@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | protected function mapWebRoutes() |
| 53 | 53 | { |
| 54 | 54 | Route::middleware('web') |
| 55 | - ->namespace($this->namespace) |
|
| 56 | - ->group(base_path('routes/web.php')); |
|
| 55 | + ->namespace($this->namespace) |
|
| 56 | + ->group(base_path('routes/web.php')); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | protected function mapApiRoutes() |
| 67 | 67 | { |
| 68 | 68 | Route::middleware('api') |
| 69 | - ->namespace($this->namespace) |
|
| 70 | - ->group(base_path('routes/api.php')); |
|
| 69 | + ->namespace($this->namespace) |
|
| 70 | + ->group(base_path('routes/api.php')); |
|
| 71 | 71 | } |
| 72 | 72 | } |