I am beginer with Laravel, I need help please.
In my edit user page, I have 3 forms. But I can not do in my rooter how to make it work.
My code (in Routes) :
<?php
// update role
Route::post('edit/{id}', [
'as' => 'user_post_update_role',
'uses' => 'UserController@updateRole'
]);
// update infos
Route::post('edit/{id}', [
'as' => 'user_post_update',
'uses' => 'UserController@update'
]);
// update password.
Route::post('edit/{id}', [
'as' => 'user_post_update_password',
'uses' => 'UserController@updatePassword'
]);
?>
But the last rule, Block others.
How to do ? Thank
</div>