Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Commit

Permalink
Fix duplicate named routes. Fixes #74
Browse files Browse the repository at this point in the history
  • Loading branch information
Liamso committed Jul 7, 2020
1 parent fc6acd1 commit 3c0bbf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/web.php
Expand Up @@ -16,14 +16,14 @@

Route::group(['middleware' => 'auth', 'as' => 'voyager-frontend.account'], function () use ($accountController) {
Route::get('/account', "$accountController@index");
Route::post('/account', "$accountController@updateAccount");
Route::post('/account', "$accountController@updateAccount")->name('.update');

/**
* User impersonation
*/
Route::get('/admin/users/impersonate/{userId}', "$accountController@impersonateUser")
->name('.impersonate')
->middleware(['web', 'admin.user']);
->middleware(['web', 'admin.user'])->name('.admin');

Route::post('/admin/users/impersonate/{originalId}', "$accountController@impersonateUser")
->name('.impersonate')
Expand Down

0 comments on commit 3c0bbf8

Please sign in to comment.