Skip to content

Commit bc2d0d3

Browse files
committed
Fix route with duplicated names
1 parent 874261b commit bc2d0d3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

routes/web.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656

5757
// Homepage Route - Redirect based on user role is in controller.
5858
Route::get('/home', [
59-
'as' => 'public.home',
60-
'uses' => 'App\Http\Controllers\UserController@index',
61-
'name' => 'home',
59+
'as' => 'public.home',
60+
'uses' => 'App\Http\Controllers\UserController@index',
61+
'name' => 'home',
6262
]);
6363

6464
// Show users profile - viewable by other users.
@@ -85,15 +85,15 @@
8585
]
8686
);
8787
Route::put('profile/{username}/updateUserAccount', [
88-
'as' => '{username}',
88+
'as' => 'profile.updateUserAccount',
8989
'uses' => 'App\Http\Controllers\ProfilesController@updateUserAccount',
9090
]);
9191
Route::put('profile/{username}/updateUserPassword', [
92-
'as' => '{username}',
92+
'as' => 'profile.updateUserPassword',
9393
'uses' => 'App\Http\Controllers\ProfilesController@updateUserPassword',
9494
]);
9595
Route::delete('profile/{username}/deleteUserAccount', [
96-
'as' => '{username}',
96+
'as' => 'profile.deleteUserAccount',
9797
'uses' => 'App\Http\Controllers\ProfilesController@deleteUserAccount',
9898
]);
9999

0 commit comments

Comments
 (0)