laravel-auth
laravel-auth copied to clipboard
LogicException Unable to prepare route [logout] for serialization. Another route has already been assigned name [logout].
Hello there,
- a fresh Laravel-auth v8.2.0 installation.
- followed all 12 steps Installation Instructions.
- Npm and built cache.
- "php artisan route:cache" returns logic exception in the subject.
Does it happen to me only? Am I missing something?
- PHP 7.4.1
- Windows 10, 20H2
- Wampserver 3.2.5

It happened to me today as well, I havent dug into it too deeply yet, but I believe it is becausse in the resource for the logout route it is used twice in the core laravel-auth files. But havent dug into it deeply enough yet. I have other issues :)
Hi all, does anyone have an update for this issue. Just ran into this issue as well.
Just comment out this line:
https://github.com/jeremykenedy/laravel-auth/blob/master/routes/web.php#L50
It will be removed from the project later.
Thanks,
Thank you. Do we also remove the routes from web.php for the following errors?
Unable to prepare route [profile/{username}/updateUserAccount] for serialization. Another route has already been assigned name [{username}]. Unable to prepare route [profile/{username}/updateUserPassword] for serialization. Another route has already been assigned name [{username}]. Unable to prepare route [profile/{username}/deleteUserAccount] for serialization. Another route has already been assigned name [{username}].
Route::put('profile/{username}/updateUserAccount', [
'as' => '{username}',
'uses' => 'App\Http\Controllers\ProfilesController@updateUserAccount',
]);
Route::put('profile/{username}/updateUserPassword', [
'as' => '{username}',
'uses' => 'App\Http\Controllers\ProfilesController@updateUserPassword',
]);
Route::delete('profile/{username}/deleteUserAccount', [
'as' => '{username}',
'uses' => 'App\Http\Controllers\ProfilesController@deleteUserAccount',
]);
Is this still an issue?