@@ -26,16 +26,16 @@ |
||
26 | 26 | $this->name('password-resets.')->prefix('password-resets')->group(function () { |
27 | 27 | // admin::authorization.password-resets.index |
28 | 28 | $this->get('/', [PasswordResetsController::class, 'index']) |
29 | - ->name('index'); |
|
29 | + ->name('index'); |
|
30 | 30 | |
31 | 31 | // admin::authorization.password-resets.datatable |
32 | 32 | $this->post('datatable', [PasswordResetsController::class, 'datatable']) |
33 | - ->middleware(['ajax']) |
|
34 | - ->name('datatable'); |
|
33 | + ->middleware(['ajax']) |
|
34 | + ->name('datatable'); |
|
35 | 35 | |
36 | 36 | // admin::authorization.password-resets.metrics |
37 | 37 | $this->get('metrics', [PasswordResetsController::class, 'metrics']) |
38 | - ->name('metrics'); |
|
38 | + ->name('metrics'); |
|
39 | 39 | }); |
40 | 40 | } |
41 | 41 | } |
@@ -34,17 +34,17 @@ |
||
34 | 34 | $this->prefix('permissions')->name('permissions.')->group(function () { |
35 | 35 | // admin::authorization.permissions.index |
36 | 36 | $this->get('/', [PermissionsController::class, 'index']) |
37 | - ->name('index'); |
|
37 | + ->name('index'); |
|
38 | 38 | |
39 | 39 | // admin::authorization.permissions.datatable |
40 | 40 | $this->post('datatable', [PermissionsController::class, 'datatable']) |
41 | - ->middleware(['ajax']) |
|
42 | - ->name('datatable'); |
|
41 | + ->middleware(['ajax']) |
|
42 | + ->name('datatable'); |
|
43 | 43 | |
44 | 44 | $this->prefix('{'.static::PERMISSION_WILDCARD.'}')->group(function () { |
45 | 45 | // admin::authorization.permissions.show |
46 | 46 | $this->get('/', [PermissionsController::class, 'show']) |
47 | - ->name('show'); |
|
47 | + ->name('show'); |
|
48 | 48 | |
49 | 49 | static::mapRouteClasses([ |
50 | 50 | Permissions\RolesRoutes::class, |
@@ -34,52 +34,52 @@ |
||
34 | 34 | $this->name('roles.')->prefix('roles')->group(function () { |
35 | 35 | // admin::authorization.roles.index |
36 | 36 | $this->get('/', [RolesController::class, 'index']) |
37 | - ->name('index'); |
|
37 | + ->name('index'); |
|
38 | 38 | |
39 | 39 | // admin::authorization.roles.datatable |
40 | 40 | $this->post('datatable', [RolesController::class, 'datatable']) |
41 | - ->middleware(['ajax']) |
|
42 | - ->name('datatable'); |
|
41 | + ->middleware(['ajax']) |
|
42 | + ->name('datatable'); |
|
43 | 43 | |
44 | 44 | // admin::authorization.roles.metrics |
45 | 45 | $this->get('metrics', [RolesController::class, 'metrics']) |
46 | - ->name('metrics'); |
|
46 | + ->name('metrics'); |
|
47 | 47 | |
48 | 48 | // admin::authorization.roles.create |
49 | 49 | $this->get('create', [RolesController::class, 'create']) |
50 | - ->name('create'); |
|
50 | + ->name('create'); |
|
51 | 51 | |
52 | 52 | // admin::authorization.roles.store |
53 | 53 | $this->post('store', [RolesController::class, 'store']) |
54 | - ->name('store'); |
|
54 | + ->name('store'); |
|
55 | 55 | |
56 | 56 | $this->prefix('{'.static::ROLE_WILDCARD.'}')->group(function () { |
57 | 57 | // admin::authorization.roles.show |
58 | 58 | $this->get('/', [RolesController::class, 'show']) |
59 | - ->name('show'); |
|
59 | + ->name('show'); |
|
60 | 60 | |
61 | 61 | // admin::authorization.roles.edit |
62 | 62 | $this->get('edit', [RolesController::class, 'edit']) |
63 | - ->name('edit'); |
|
63 | + ->name('edit'); |
|
64 | 64 | |
65 | 65 | // admin::authorization.roles.update |
66 | 66 | $this->put('update', [RolesController::class, 'update']) |
67 | - ->name('update'); |
|
67 | + ->name('update'); |
|
68 | 68 | |
69 | 69 | // admin::authorization.roles.activate |
70 | 70 | $this->put('activate', [RolesController::class, 'activate']) |
71 | - ->middleware(['ajax']) |
|
72 | - ->name('activate'); |
|
71 | + ->middleware(['ajax']) |
|
72 | + ->name('activate'); |
|
73 | 73 | |
74 | 74 | // admin::authorization.roles.deactivate |
75 | 75 | $this->put('deactivate', [RolesController::class, 'deactivate']) |
76 | - ->middleware(['ajax']) |
|
77 | - ->name('deactivate'); |
|
76 | + ->middleware(['ajax']) |
|
77 | + ->name('deactivate'); |
|
78 | 78 | |
79 | 79 | // admin::authorization.roles.delete |
80 | 80 | $this->delete('delete', [RolesController::class, 'delete']) |
81 | - ->middleware(['ajax']) |
|
82 | - ->name('delete'); |
|
81 | + ->middleware(['ajax']) |
|
82 | + ->name('delete'); |
|
83 | 83 | |
84 | 84 | $this->namespace('Roles')->group(function () { |
85 | 85 | static::mapRouteClasses([ |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $this->prefix('{'.static::ROLE_WILDCARD.'}')->group(function () { |
38 | 38 | // admin::authorization.permissions.roles.detach |
39 | 39 | $this->delete('detach', [RolesController::class, 'detach']) |
40 | - ->name('detach'); |
|
40 | + ->name('detach'); |
|
41 | 41 | }); |
42 | 42 | }); |
43 | 43 | } |
@@ -34,57 +34,57 @@ |
||
34 | 34 | $this->name('administrators.')->prefix('administrators')->group(function () { |
35 | 35 | // admin::authorization.administrators.index |
36 | 36 | $this->get('/', [AdministratorsController::class, 'index']) |
37 | - ->name('index'); |
|
37 | + ->name('index'); |
|
38 | 38 | |
39 | 39 | // admin::authorization.administrators.datatable |
40 | 40 | $this->post('datatable', [AdministratorsController::class, 'datatable']) |
41 | - ->middleware(['ajax']) |
|
42 | - ->name('datatable'); |
|
41 | + ->middleware(['ajax']) |
|
42 | + ->name('datatable'); |
|
43 | 43 | |
44 | 44 | // admin::authorization.administrators.metrics |
45 | 45 | $this->get('metrics', [AdministratorsController::class, 'metrics']) |
46 | - ->name('metrics'); |
|
46 | + ->name('metrics'); |
|
47 | 47 | |
48 | 48 | // admin::authorization.administrators.create |
49 | 49 | $this->get('create', [AdministratorsController::class, 'create']) |
50 | - ->name('create'); |
|
50 | + ->name('create'); |
|
51 | 51 | |
52 | 52 | // admin::authorization.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::authorization.administrators.show |
58 | 58 | $this->get('/', [AdministratorsController::class, 'show']) |
59 | - ->name('show'); |
|
59 | + ->name('show'); |
|
60 | 60 | |
61 | 61 | // admin::authorization.administrators.edit |
62 | 62 | $this->get('edit', [AdministratorsController::class, 'edit']) |
63 | - ->name('edit'); |
|
63 | + ->name('edit'); |
|
64 | 64 | |
65 | 65 | // admin::authorization.administrators.update |
66 | 66 | $this->put('update', [AdministratorsController::class, 'update']) |
67 | - ->name('update'); |
|
67 | + ->name('update'); |
|
68 | 68 | |
69 | 69 | // admin::authorization.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::authorization.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::authorization.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::authorization.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 |
@@ -63,8 +63,8 @@ |
||
63 | 63 | |
64 | 64 | return $query->unless(empty($search), function (Builder $q) use ($search): Builder { |
65 | 65 | return $q->where('first_name', 'like', '%'.$search.'%') |
66 | - ->orWhere('last_name', 'like', '%'.$search.'%') |
|
67 | - ->orWhere('email', 'like', '%'.$search.'%'); |
|
66 | + ->orWhere('last_name', 'like', '%'.$search.'%') |
|
67 | + ->orWhere('email', 'like', '%'.$search.'%'); |
|
68 | 68 | }); |
69 | 69 | } |
70 | 70 |
@@ -26,16 +26,16 @@ |
||
26 | 26 | $this->prefix('dependencies')->name('dependencies.')->group(function () { |
27 | 27 | // admin::system.dependencies.index |
28 | 28 | $this->get('/', [DependenciesController::class, 'index']) |
29 | - ->name('index'); |
|
29 | + ->name('index'); |
|
30 | 30 | |
31 | 31 | // admin::system.dependencies.datatable |
32 | 32 | $this->post('datatable', [DependenciesController::class, 'datatable']) |
33 | - ->middleware(['ajax']) |
|
34 | - ->name('datatable'); |
|
33 | + ->middleware(['ajax']) |
|
34 | + ->name('datatable'); |
|
35 | 35 | |
36 | 36 | // admin::system.dependencies.show |
37 | 37 | $this->get('{admin_package_vendor}/{admin_package_name}', [DependenciesController::class, 'show']) |
38 | - ->name('show'); |
|
38 | + ->name('show'); |
|
39 | 39 | }); |
40 | 40 | } |
41 | 41 | } |
@@ -26,12 +26,12 @@ |
||
26 | 26 | $this->prefix('routes-viewer')->name('routes-viewer.')->group(function () { |
27 | 27 | // admin::system.routes-viewer.index |
28 | 28 | $this->get('/', [RoutesViewerController::class, 'index']) |
29 | - ->name('index'); |
|
29 | + ->name('index'); |
|
30 | 30 | |
31 | 31 | // admin::system.routes-viewer.index |
32 | 32 | $this->post('datatable', [RoutesViewerController::class, 'datatable']) |
33 | - ->middleware(['ajax']) |
|
34 | - ->name('datatable'); |
|
33 | + ->middleware(['ajax']) |
|
34 | + ->name('datatable'); |
|
35 | 35 | }); |
36 | 36 | } |
37 | 37 | } |
@@ -26,15 +26,15 @@ |
||
26 | 26 | $this->prefix('abilities')->name('abilities.')->group(function () { |
27 | 27 | // admin::system.abilities.index |
28 | 28 | $this->get('/', [AbilitiesController::class, 'index']) |
29 | - ->name('index'); |
|
29 | + ->name('index'); |
|
30 | 30 | |
31 | 31 | // admin::system.abilities.datatable |
32 | 32 | $this->post('datatable', [AbilitiesController::class, 'datatable']) |
33 | - ->name('datatable'); |
|
33 | + ->name('datatable'); |
|
34 | 34 | |
35 | 35 | // admin::system.abilities.show |
36 | 36 | $this->get('{admin_ability_key}', [AbilitiesController::class, 'show']) |
37 | - ->name('show'); |
|
37 | + ->name('show'); |
|
38 | 38 | }); |
39 | 39 | } |
40 | 40 | } |