@@ -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); |
@@ -36,56 +36,56 @@ |
||
36 | 36 | $this->name('users.')->prefix('users')->group(function () { |
37 | 37 | // admin::auth.users.index |
38 | 38 | $this->get('/', [UsersController::class, 'index']) |
39 | - ->name('index'); |
|
39 | + ->name('index'); |
|
40 | 40 | |
41 | 41 | // admin::auth.users.trash |
42 | 42 | $this->get('trash', [UsersController::class, 'trash']) |
43 | - ->name('trash'); |
|
43 | + ->name('trash'); |
|
44 | 44 | |
45 | 45 | // admin::auth.users.metrics |
46 | 46 | $this->get('metrics', [UsersController::class, 'metrics']) |
47 | - ->name('metrics'); |
|
47 | + ->name('metrics'); |
|
48 | 48 | |
49 | 49 | // admin::auth.users.create |
50 | 50 | $this->get('create', [UsersController::class, 'create']) |
51 | - ->name('create'); |
|
51 | + ->name('create'); |
|
52 | 52 | |
53 | 53 | // admin::auth.users.post |
54 | 54 | $this->post('store', [UsersController::class, 'store']) |
55 | - ->name('store'); |
|
55 | + ->name('store'); |
|
56 | 56 | |
57 | 57 | $this->prefix('{'.static::USER_WILDCARD.'}')->group(function () { |
58 | 58 | // admin::auth.users.show |
59 | 59 | $this->get('/', [UsersController::class, 'show']) |
60 | - ->name('show'); |
|
60 | + ->name('show'); |
|
61 | 61 | |
62 | 62 | // admin::auth.users.edit |
63 | 63 | $this->get('edit', [UsersController::class, 'edit']) |
64 | - ->name('edit'); |
|
64 | + ->name('edit'); |
|
65 | 65 | |
66 | 66 | // admin::auth.users.update |
67 | 67 | $this->put('update', [UsersController::class, 'update']) |
68 | - ->name('update'); |
|
68 | + ->name('update'); |
|
69 | 69 | |
70 | 70 | // admin::auth.users.activate |
71 | 71 | $this->put('activate', [UsersController::class, 'activate']) |
72 | - ->middleware(['ajax']) |
|
73 | - ->name('activate'); |
|
72 | + ->middleware(['ajax']) |
|
73 | + ->name('activate'); |
|
74 | 74 | |
75 | 75 | // admin::auth.users.delete |
76 | 76 | $this->delete('delete', [UsersController::class, 'delete']) |
77 | - ->middleware(['ajax']) |
|
78 | - ->name('delete'); |
|
77 | + ->middleware(['ajax']) |
|
78 | + ->name('delete'); |
|
79 | 79 | |
80 | 80 | // admin::auth.users.restore |
81 | 81 | $this->put('restore', [UsersController::class, 'restore']) |
82 | - ->middleware(['ajax']) |
|
83 | - ->name('restore'); |
|
82 | + ->middleware(['ajax']) |
|
83 | + ->name('restore'); |
|
84 | 84 | |
85 | 85 | if (impersonator()->isEnabled()) { |
86 | 86 | // admin::auth.users.impersonate |
87 | 87 | $this->get('impersonate', [UsersController::class, 'impersonate']) |
88 | - ->name('impersonate'); |
|
88 | + ->name('impersonate'); |
|
89 | 89 | } |
90 | 90 | }); |
91 | 91 | }); |
@@ -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([ |
@@ -36,42 +36,42 @@ |
||
36 | 36 | $this->name('roles.')->prefix('roles')->group(function () { |
37 | 37 | // admin::auth.roles.index |
38 | 38 | $this->get('/', [RolesController::class, 'index']) |
39 | - ->name('index'); |
|
39 | + ->name('index'); |
|
40 | 40 | |
41 | 41 | // admin::auth.roles.metrics |
42 | 42 | $this->get('metrics', [RolesController::class, 'metrics']) |
43 | - ->name('metrics'); |
|
43 | + ->name('metrics'); |
|
44 | 44 | |
45 | 45 | // admin::auth.roles.create |
46 | 46 | $this->get('create', [RolesController::class, 'create']) |
47 | - ->name('create'); |
|
47 | + ->name('create'); |
|
48 | 48 | |
49 | 49 | // admin::auth.roles.store |
50 | 50 | $this->post('store', [RolesController::class, 'store']) |
51 | - ->name('store'); |
|
51 | + ->name('store'); |
|
52 | 52 | |
53 | 53 | $this->prefix('{'.self::ROLE_WILDCARD.'}')->group(function () { |
54 | 54 | // admin::auth.roles.show |
55 | 55 | $this->get('/', [RolesController::class, 'show']) |
56 | - ->name('show'); |
|
56 | + ->name('show'); |
|
57 | 57 | |
58 | 58 | // admin::auth.roles.edit |
59 | 59 | $this->get('edit', [RolesController::class, 'edit']) |
60 | - ->name('edit'); |
|
60 | + ->name('edit'); |
|
61 | 61 | |
62 | 62 | // admin::auth.roles.update |
63 | 63 | $this->put('update', [RolesController::class, 'update']) |
64 | - ->name('update'); |
|
64 | + ->name('update'); |
|
65 | 65 | |
66 | 66 | // admin::auth.roles.activate |
67 | 67 | $this->put('activate', [RolesController::class, 'activate']) |
68 | - ->middleware(['ajax']) |
|
69 | - ->name('activate'); |
|
68 | + ->middleware(['ajax']) |
|
69 | + ->name('activate'); |
|
70 | 70 | |
71 | 71 | // admin::auth.roles.delete |
72 | 72 | $this->delete('delete', [RolesController::class, 'delete']) |
73 | - ->middleware(['ajax']) |
|
74 | - ->name('delete'); |
|
73 | + ->middleware(['ajax']) |
|
74 | + ->name('delete'); |
|
75 | 75 | |
76 | 76 | $this->namespace('Roles')->group(function () { |
77 | 77 | static::mapRouteClasses([ |
@@ -36,51 +36,51 @@ |
||
36 | 36 | $this->name('administrators.')->prefix('administrators')->group(function () { |
37 | 37 | // admin::auth.administrators.index |
38 | 38 | $this->get('/', [AdministratorsController::class, 'index']) |
39 | - ->name('index'); |
|
39 | + ->name('index'); |
|
40 | 40 | |
41 | 41 | // admin::auth.administrators.trash |
42 | 42 | $this->get('trash', [AdministratorsController::class, 'trash']) |
43 | - ->name('trash'); |
|
43 | + ->name('trash'); |
|
44 | 44 | |
45 | 45 | // admin::auth.administrators.metrics |
46 | 46 | $this->get('metrics', [AdministratorsController::class, 'metrics']) |
47 | - ->name('metrics'); |
|
47 | + ->name('metrics'); |
|
48 | 48 | |
49 | 49 | // admin::auth.administrators.create |
50 | 50 | $this->get('create', [AdministratorsController::class, 'create']) |
51 | - ->name('create'); |
|
51 | + ->name('create'); |
|
52 | 52 | |
53 | 53 | // admin::auth.administrators.post |
54 | 54 | $this->post('store', [AdministratorsController::class, 'store']) |
55 | - ->name('store'); |
|
55 | + ->name('store'); |
|
56 | 56 | |
57 | 57 | $this->prefix('{'.static::WILDCARD_ADMIN.'}')->group(function () { |
58 | 58 | // admin::auth.administrators.show |
59 | 59 | $this->get('/', [AdministratorsController::class, 'show']) |
60 | - ->name('show'); |
|
60 | + ->name('show'); |
|
61 | 61 | |
62 | 62 | // admin::auth.administrators.edit |
63 | 63 | $this->get('edit', [AdministratorsController::class, 'edit']) |
64 | - ->name('edit'); |
|
64 | + ->name('edit'); |
|
65 | 65 | |
66 | 66 | // admin::auth.administrators.update |
67 | 67 | $this->put('update', [AdministratorsController::class, 'update']) |
68 | - ->name('update'); |
|
68 | + ->name('update'); |
|
69 | 69 | |
70 | 70 | // admin::auth.administrators.activate |
71 | 71 | $this->put('activate', [AdministratorsController::class, 'activate']) |
72 | - ->middleware(['ajax']) |
|
73 | - ->name('activate'); |
|
72 | + ->middleware(['ajax']) |
|
73 | + ->name('activate'); |
|
74 | 74 | |
75 | 75 | // admin::auth.administrators.delete |
76 | 76 | $this->delete('delete', [AdministratorsController::class, 'delete']) |
77 | - ->middleware(['ajax']) |
|
78 | - ->name('delete'); |
|
77 | + ->middleware(['ajax']) |
|
78 | + ->name('delete'); |
|
79 | 79 | |
80 | 80 | // admin::auth.administrators.restore |
81 | 81 | $this->put('restore', [AdministratorsController::class, 'restore']) |
82 | - ->middleware(['ajax']) |
|
83 | - ->name('restore'); |
|
82 | + ->middleware(['ajax']) |
|
83 | + ->name('restore'); |
|
84 | 84 | |
85 | 85 | static::mapRouteClasses([ |
86 | 86 | Administrators\SessionsRoutes::class |