@@ -70,7 +70,7 @@ |
||
70 | 70 | |
71 | 71 | if ($code = $request->validRecoveryCode()) { |
72 | 72 | $this->getTwoFactorAuthenticationRepository() |
73 | - ->replaceRecoveryCode($user, $code); |
|
73 | + ->replaceRecoveryCode($user, $code); |
|
74 | 74 | } |
75 | 75 | elseif ( ! $request->hasValidCode()) { |
76 | 76 | return $this->getFailedTwoFactorLoginResponse($request); |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $this->prefix('{'.self::USER_WILDCARD.'}')->group(function () { |
39 | 39 | // admin::auth.roles.administrators.detach |
40 | 40 | $this->delete('detach', [AdministratorsController::class, 'detach']) |
41 | - ->name('detach'); |
|
41 | + ->name('detach'); |
|
42 | 42 | }); |
43 | 43 | }); |
44 | 44 | } |
@@ -28,11 +28,11 @@ |
||
28 | 28 | $this->name('password-resets.')->prefix('password-resets')->group(function () { |
29 | 29 | // admin::authorization.password-resets.index |
30 | 30 | $this->get('/', [PasswordResetsController::class, 'index']) |
31 | - ->name('index'); |
|
31 | + ->name('index'); |
|
32 | 32 | |
33 | 33 | // admin::authorization.password-resets.metrics |
34 | 34 | $this->get('metrics', [PasswordResetsController::class, 'metrics']) |
35 | - ->name('metrics'); |
|
35 | + ->name('metrics'); |
|
36 | 36 | }); |
37 | 37 | }); |
38 | 38 | } |
@@ -28,20 +28,20 @@ |
||
28 | 28 | $this->prefix('profile')->name('profile.')->middleware(['administrator.password.confirm'])->group(function () { |
29 | 29 | // admin::auth.profile.index |
30 | 30 | $this->get('/', [ProfileController::class, 'index']) |
31 | - ->name('index'); |
|
31 | + ->name('index'); |
|
32 | 32 | |
33 | 33 | // Account |
34 | 34 | $this->prefix('account')->name('account.')->group(function () { |
35 | 35 | // admin::auth.profile.account.update |
36 | 36 | $this->put('update', [ProfileController::class, 'updateAccount']) |
37 | - ->name('update'); |
|
37 | + ->name('update'); |
|
38 | 38 | }); |
39 | 39 | |
40 | 40 | // Password |
41 | 41 | $this->prefix('password')->name('password.')->group(function () { |
42 | 42 | // admin::auth.profile.password.update |
43 | 43 | $this->put('update', [ProfileController::class, 'updatePassword']) |
44 | - ->name('update'); |
|
44 | + ->name('update'); |
|
45 | 45 | }); |
46 | 46 | }); |
47 | 47 | }); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $this->name('sessions.')->name('prefix')->group(function () { |
37 | 37 | $this->prefix('{'.static::WILDCARD_SESSION.'}')->group(function () { |
38 | 38 | $this->delete('delete', [SessionsController::class, 'delete']) |
39 | - ->name('delete'); // admin::auth.administrators.sessions.delete |
|
39 | + ->name('delete'); // admin::auth.administrators.sessions.delete |
|
40 | 40 | }); |
41 | 41 | }); |
42 | 42 | } |
@@ -36,12 +36,12 @@ |
||
36 | 36 | $this->prefix('permissions')->name('permissions.')->group(function () { |
37 | 37 | // admin::auth.permissions.index |
38 | 38 | $this->get('/', [PermissionsController::class, 'index']) |
39 | - ->name('index'); |
|
39 | + ->name('index'); |
|
40 | 40 | |
41 | 41 | $this->prefix('{'.self::PERMISSION_WILDCARD.'}')->group(function () { |
42 | 42 | // admin::auth.permissions.show |
43 | 43 | $this->get('/', [PermissionsController::class, 'show']) |
44 | - ->name('show'); |
|
44 | + ->name('show'); |
|
45 | 45 | |
46 | 46 | $this->namespace('Permissions')->group(function () { |
47 | 47 | static::mapRouteClasses([ |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | protected function adminGroup(Closure $callback): void |
69 | 69 | { |
70 | 70 | $this->prefix($this->getAdminPrefix()) |
71 | - ->middleware($this->getAdminMiddleware()) |
|
72 | - ->name($this->getAdminName()) |
|
73 | - ->group($this->prepareModuleCallback($callback)); |
|
71 | + ->middleware($this->getAdminMiddleware()) |
|
72 | + ->name($this->getAdminName()) |
|
73 | + ->group($this->prepareModuleCallback($callback)); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -82,9 +82,9 @@ discard block |
||
82 | 82 | { |
83 | 83 | $this->adminGroup(function () use ($callback) { |
84 | 84 | $this->prefix('api') |
85 | - ->name('api.') |
|
86 | - ->middleware(['ajax']) |
|
87 | - ->group($callback); |
|
85 | + ->name('api.') |
|
86 | + ->middleware(['ajax']) |
|
87 | + ->group($callback); |
|
88 | 88 | }); |
89 | 89 | } |
90 | 90 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $this->prefix('routes-viewer')->name('routes-viewer.')->group(function () { |
28 | 28 | // admin::system.routes-viewer.index |
29 | 29 | $this->get('/', [RoutesViewerController::class, 'index']) |
30 | - ->name('index'); |
|
30 | + ->name('index'); |
|
31 | 31 | }); |
32 | 32 | } |
33 | 33 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $this->adminGroup(function () { |
28 | 28 | // admin::system.index |
29 | 29 | $this->get('/', [SystemController::class, 'index']) |
30 | - ->name('index'); |
|
30 | + ->name('index'); |
|
31 | 31 | |
32 | 32 | static::mapRouteClasses([ |
33 | 33 | AbilitiesRoutes::class, |