The problem is that you have two routes with the same name, so laravel looks for the last one and omits the rest, so as your last route defined with the namesecurity is : Route::put('/panel/security','UserController@securityUpdate')->name('segurity'), it is to this one that it is redirected and not to the first one as you want it
The solution is simple, change the name to one of these or both, which is what I recommend.
The problem is that you have two routes with the same
name
, so laravel looks for the last one and omits the rest, so as your last route defined with thename
security is :Route::put('/panel/security','UserController@securityUpdate')->name('segurity')
, it is to this one that it is redirected and not to the first one as you want itThe solution is simple, change the name to one of these or both, which is what I recommend.
In your web.php
and your view for editing:
or for update: