I have a form in a page (blade) which redirects to a route which is to call a function in a controller however it does not even go inside the function because even a simple dd(); cannot be executed. when in route, if I change to
Route::post('edit/profile', function(Request $request){
dd($request);
});
it works. I tried to change both route's function name and controller's function name to another name still doesn't recognize.
My current route
Route::post('edit/profile', 'Auth\LoginController@updateUser');
My form line
<form action="{{url('/edit/profile')}}" method="post">
{{ csrf_field() }}
My function inside LoginController
public function updateUser(Request $request)
{
//insert code here
}
composer dump-autoload?