@@ -27,31 +27,31 @@ |
||
27 | 27 | $this->prefix('log-viewer')->name('log-viewer.')->group(function () { |
28 | 28 | // admin::system.log-viewer.index |
29 | 29 | $this->get('/', [LogViewerController::class, 'index']) |
30 | - ->name('index'); |
|
30 | + ->name('index'); |
|
31 | 31 | |
32 | 32 | $this->prefix('logs')->name('logs.')->group(function () { |
33 | 33 | $this->prefix('{admin_log_file_date}')->group(function () { |
34 | 34 | // admin::system.log-viewer.logs.show |
35 | 35 | $this->get('/', [LogViewerController::class, 'showLog']) |
36 | - ->name('show'); |
|
36 | + ->name('show'); |
|
37 | 37 | |
38 | 38 | // admin::system.log-viewer.logs.download |
39 | 39 | $this->get('download', [LogViewerController::class, 'download']) |
40 | - ->name('download'); |
|
40 | + ->name('download'); |
|
41 | 41 | |
42 | 42 | // admin::system.log-viewer.logs.delete |
43 | 43 | $this->delete('delete', [LogViewerController::class, 'delete']) |
44 | - ->middleware(['ajax']) |
|
45 | - ->name('delete'); |
|
44 | + ->middleware(['ajax']) |
|
45 | + ->name('delete'); |
|
46 | 46 | |
47 | 47 | $this->prefix('{admin_log_level}')->group(function () { |
48 | 48 | // admin::system.log-viewer.logs.filter |
49 | 49 | $this->get('/', [LogViewerController::class, 'filter']) |
50 | - ->name('filter'); |
|
50 | + ->name('filter'); |
|
51 | 51 | |
52 | 52 | // admin::system.log-viewer.logs.search |
53 | 53 | $this->get('search', [LogViewerController::class, 'search']) |
54 | - ->name('search'); |
|
54 | + ->name('search'); |
|
55 | 55 | }); |
56 | 56 | }); |
57 | 57 | }); |
@@ -96,8 +96,8 @@ |
||
96 | 96 | 'two_factors' => 'two_factors', |
97 | 97 | ], |
98 | 98 | |
99 | - // Models |
|
100 | - // ---------------------------------- |
|
99 | + // Models |
|
100 | + // ---------------------------------- |
|
101 | 101 | |
102 | 102 | 'models' => [ |
103 | 103 | 'user' => App\Models\User::class, |
@@ -27,7 +27,7 @@ |
||
27 | 27 | protected function moduleGroup(Closure $callback) |
28 | 28 | { |
29 | 29 | $this->prefix('system') |
30 | - ->name('system.') |
|
31 | - ->group($callback); |
|
30 | + ->name('system.') |
|
31 | + ->group($callback); |
|
32 | 32 | } |
33 | 33 | } |
@@ -35,56 +35,56 @@ |
||
35 | 35 | $this->name('administrators.')->prefix('administrators')->group(function () { |
36 | 36 | // admin::auth.administrators.index |
37 | 37 | $this->get('/', [AdministratorsController::class, 'index']) |
38 | - ->name('index'); |
|
38 | + ->name('index'); |
|
39 | 39 | |
40 | 40 | // admin::auth.administrators.trash |
41 | 41 | $this->get('trash', [AdministratorsController::class, 'trash']) |
42 | - ->name('trash'); |
|
42 | + ->name('trash'); |
|
43 | 43 | |
44 | 44 | // admin::auth.administrators.metrics |
45 | 45 | $this->get('metrics', [AdministratorsController::class, 'metrics']) |
46 | - ->name('metrics'); |
|
46 | + ->name('metrics'); |
|
47 | 47 | |
48 | 48 | // admin::auth.administrators.create |
49 | 49 | $this->get('create', [AdministratorsController::class, 'create']) |
50 | - ->name('create'); |
|
50 | + ->name('create'); |
|
51 | 51 | |
52 | 52 | // admin::auth.administrators.post |
53 | 53 | $this->post('store', [AdministratorsController::class, 'store']) |
54 | - ->name('store'); |
|
54 | + ->name('store'); |
|
55 | 55 | |
56 | 56 | $this->prefix('{'.static::WILDCARD_ADMIN.'}')->group(function () { |
57 | 57 | // admin::auth.administrators.show |
58 | 58 | $this->get('/', [AdministratorsController::class, 'show']) |
59 | - ->name('show'); |
|
59 | + ->name('show'); |
|
60 | 60 | |
61 | 61 | // admin::auth.administrators.edit |
62 | 62 | $this->get('edit', [AdministratorsController::class, 'edit']) |
63 | - ->name('edit'); |
|
63 | + ->name('edit'); |
|
64 | 64 | |
65 | 65 | // admin::auth.administrators.update |
66 | 66 | $this->put('update', [AdministratorsController::class, 'update']) |
67 | - ->name('update'); |
|
67 | + ->name('update'); |
|
68 | 68 | |
69 | 69 | // admin::auth.administrators.activate |
70 | 70 | $this->put('activate', [AdministratorsController::class, 'activate']) |
71 | - ->middleware(['ajax']) |
|
72 | - ->name('activate'); |
|
71 | + ->middleware(['ajax']) |
|
72 | + ->name('activate'); |
|
73 | 73 | |
74 | 74 | // admin::auth.administrators.deactivate |
75 | 75 | $this->put('deactivate', [AdministratorsController::class, 'deactivate']) |
76 | - ->middleware(['ajax']) |
|
77 | - ->name('deactivate'); |
|
76 | + ->middleware(['ajax']) |
|
77 | + ->name('deactivate'); |
|
78 | 78 | |
79 | 79 | // admin::auth.administrators.delete |
80 | 80 | $this->delete('delete', [AdministratorsController::class, 'delete']) |
81 | - ->middleware(['ajax']) |
|
82 | - ->name('delete'); |
|
81 | + ->middleware(['ajax']) |
|
82 | + ->name('delete'); |
|
83 | 83 | |
84 | 84 | // admin::auth.administrators.restore |
85 | 85 | $this->put('restore', [AdministratorsController::class, 'restore']) |
86 | - ->middleware(['ajax']) |
|
87 | - ->name('restore'); |
|
86 | + ->middleware(['ajax']) |
|
87 | + ->name('restore'); |
|
88 | 88 | |
89 | 89 | static::mapRouteClasses([ |
90 | 90 | Administrators\SessionsRoutes::class |
@@ -35,61 +35,61 @@ |
||
35 | 35 | $this->name('users.')->prefix('users')->group(function () { |
36 | 36 | // admin::auth.users.index |
37 | 37 | $this->get('/', [UsersController::class, 'index']) |
38 | - ->name('index'); |
|
38 | + ->name('index'); |
|
39 | 39 | |
40 | 40 | // admin::auth.users.trash |
41 | 41 | $this->get('trash', [UsersController::class, 'trash']) |
42 | - ->name('trash'); |
|
42 | + ->name('trash'); |
|
43 | 43 | |
44 | 44 | // admin::auth.users.metrics |
45 | 45 | $this->get('metrics', [UsersController::class, 'metrics']) |
46 | - ->name('metrics'); |
|
46 | + ->name('metrics'); |
|
47 | 47 | |
48 | 48 | // admin::auth.users.create |
49 | 49 | $this->get('create', [UsersController::class, 'create']) |
50 | - ->name('create'); |
|
50 | + ->name('create'); |
|
51 | 51 | |
52 | 52 | // admin::auth.users.post |
53 | 53 | $this->post('store', [UsersController::class, 'store']) |
54 | - ->name('store'); |
|
54 | + ->name('store'); |
|
55 | 55 | |
56 | 56 | $this->prefix('{'.static::USER_WILDCARD.'}')->group(function () { |
57 | 57 | // admin::auth.users.show |
58 | 58 | $this->get('/', [UsersController::class, 'show']) |
59 | - ->name('show'); |
|
59 | + ->name('show'); |
|
60 | 60 | |
61 | 61 | // admin::auth.users.edit |
62 | 62 | $this->get('edit', [UsersController::class, 'edit']) |
63 | - ->name('edit'); |
|
63 | + ->name('edit'); |
|
64 | 64 | |
65 | 65 | // admin::auth.users.update |
66 | 66 | $this->put('update', [UsersController::class, 'update']) |
67 | - ->name('update'); |
|
67 | + ->name('update'); |
|
68 | 68 | |
69 | 69 | // admin::auth.users.activate |
70 | 70 | $this->put('activate', [UsersController::class, 'activate']) |
71 | - ->middleware(['ajax']) |
|
72 | - ->name('activate'); |
|
71 | + ->middleware(['ajax']) |
|
72 | + ->name('activate'); |
|
73 | 73 | |
74 | 74 | // admin::auth.users.deactivate |
75 | 75 | $this->put('deactivate', [UsersController::class, 'deactivate']) |
76 | - ->middleware(['ajax']) |
|
77 | - ->name('deactivate'); |
|
76 | + ->middleware(['ajax']) |
|
77 | + ->name('deactivate'); |
|
78 | 78 | |
79 | 79 | // admin::auth.users.delete |
80 | 80 | $this->delete('delete', [UsersController::class, 'delete']) |
81 | - ->middleware(['ajax']) |
|
82 | - ->name('delete'); |
|
81 | + ->middleware(['ajax']) |
|
82 | + ->name('delete'); |
|
83 | 83 | |
84 | 84 | // admin::auth.users.restore |
85 | 85 | $this->put('restore', [UsersController::class, 'restore']) |
86 | - ->middleware(['ajax']) |
|
87 | - ->name('restore'); |
|
86 | + ->middleware(['ajax']) |
|
87 | + ->name('restore'); |
|
88 | 88 | |
89 | 89 | if (impersonator()->isEnabled()) { |
90 | 90 | // admin::auth.users.impersonate |
91 | 91 | $this->get('impersonate', [UsersController::class, 'impersonate']) |
92 | - ->name('impersonate'); |
|
92 | + ->name('impersonate'); |
|
93 | 93 | } |
94 | 94 | }); |
95 | 95 | }); |
@@ -35,47 +35,47 @@ |
||
35 | 35 | $this->name('roles.')->prefix('roles')->group(function () { |
36 | 36 | // admin::auth.roles.index |
37 | 37 | $this->get('/', [RolesController::class, 'index']) |
38 | - ->name('index'); |
|
38 | + ->name('index'); |
|
39 | 39 | |
40 | 40 | // admin::auth.roles.metrics |
41 | 41 | $this->get('metrics', [RolesController::class, 'metrics']) |
42 | - ->name('metrics'); |
|
42 | + ->name('metrics'); |
|
43 | 43 | |
44 | 44 | // admin::auth.roles.create |
45 | 45 | $this->get('create', [RolesController::class, 'create']) |
46 | - ->name('create'); |
|
46 | + ->name('create'); |
|
47 | 47 | |
48 | 48 | // admin::auth.roles.store |
49 | 49 | $this->post('store', [RolesController::class, 'store']) |
50 | - ->name('store'); |
|
50 | + ->name('store'); |
|
51 | 51 | |
52 | 52 | $this->prefix('{'.self::ROLE_WILDCARD.'}')->group(function () { |
53 | 53 | // admin::auth.roles.show |
54 | 54 | $this->get('/', [RolesController::class, 'show']) |
55 | - ->name('show'); |
|
55 | + ->name('show'); |
|
56 | 56 | |
57 | 57 | // admin::auth.roles.edit |
58 | 58 | $this->get('edit', [RolesController::class, 'edit']) |
59 | - ->name('edit'); |
|
59 | + ->name('edit'); |
|
60 | 60 | |
61 | 61 | // admin::auth.roles.update |
62 | 62 | $this->put('update', [RolesController::class, 'update']) |
63 | - ->name('update'); |
|
63 | + ->name('update'); |
|
64 | 64 | |
65 | 65 | // admin::auth.roles.activate |
66 | 66 | $this->put('activate', [RolesController::class, 'activate']) |
67 | - ->middleware(['ajax']) |
|
68 | - ->name('activate'); |
|
67 | + ->middleware(['ajax']) |
|
68 | + ->name('activate'); |
|
69 | 69 | |
70 | 70 | // admin::auth.roles.deactivate |
71 | 71 | $this->put('deactivate', [RolesController::class, 'deactivate']) |
72 | - ->middleware(['ajax']) |
|
73 | - ->name('deactivate'); |
|
72 | + ->middleware(['ajax']) |
|
73 | + ->name('deactivate'); |
|
74 | 74 | |
75 | 75 | // admin::auth.roles.delete |
76 | 76 | $this->delete('delete', [RolesController::class, 'delete']) |
77 | - ->middleware(['ajax']) |
|
78 | - ->name('delete'); |
|
77 | + ->middleware(['ajax']) |
|
78 | + ->name('delete'); |
|
79 | 79 | |
80 | 80 | $this->namespace('Roles')->group(function () { |
81 | 81 | static::mapRouteClasses([ |