|
1 | 1 | <?php
|
2 | 2 |
|
| 3 | +use JackSleight\StatamicMemberbox\Http\Controllers\UsersController; |
| 4 | + |
3 | 5 | Route::name('statamic-memberbox.')->group(function () {
|
4 | 6 | if (config('statamic.memberbox.enable_account', true)) {
|
5 | 7 | if ($route = config('statamic.memberbox.routes.activate')) {
|
|
16 | 18 |
|
17 | 19 | if ($route = config('statamic.memberbox.routes.profile')) {
|
18 | 20 | Route::statamic($route, 'statamic-memberbox::web.profile')->name('profile');
|
19 |
| - Route::post('/!/statamic-memberbox/profile', 'UsersController@profile')->name('profile.action'); |
| 21 | + Route::post('/!/statamic-memberbox/profile', [UsersController::class, 'profile'])->name('profile.action'); |
20 | 22 | }
|
21 | 23 |
|
22 | 24 | if ($route = config('statamic.memberbox.routes.forgot_password')) {
|
|
29 | 31 |
|
30 | 32 | if ($route = config('statamic.memberbox.routes.change_password')) {
|
31 | 33 | Route::statamic($route, 'statamic-memberbox::web.change_password')->name('change_password');
|
32 |
| - Route::post('/!/statamic-memberbox/change_password', 'UsersController@changePassword')->name('change_password.action'); |
| 34 | + Route::post('/!/statamic-memberbox/change_password', [UsersController::class, 'changePassword'])->name('change_password.action'); |
33 | 35 | }
|
34 | 36 | } else {
|
35 | 37 | if (config('statamic.memberbox.routes.profile')) {
|
36 |
| - Route::post('/!/statamic-memberbox/profile', 'UsersController@profile')->name('profile.action'); |
| 38 | + Route::post('/!/statamic-memberbox/profile', [UsersController::class, 'profile'])->name('profile.action'); |
37 | 39 | }
|
38 | 40 |
|
39 | 41 | if (config('statamic.memberbox.routes.change_password')) {
|
40 |
| - Route::post('/!/statamic-memberbox/change_password', 'UsersController@changePassword')->name('change_password.action'); |
| 42 | + Route::post('/!/statamic-memberbox/change_password', [UsersController::class, 'changePassword'])->name('change_password.action'); |
41 | 43 | }
|
42 | 44 | }
|
43 | 45 | if (config('statamic.memberbox.enable_directory', false)) {
|
|
0 commit comments