title: Laravel route not calling function of controller
body: <p>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 </p>
  
  <pre><code>Route::post('edit/profile', function(Request $request){
  dd($request);
  });
  </code></pre>
  
  <p>it works. I tried to change both route's function name and controller's function name to another name still doesn't recognize.</p>
  
  <p>My current route</p>
  
  <pre><code>Route::post('edit/profile', 'Auth\LoginController@updateUser');
  </code></pre>
  
  <p>My form line</p>
  
  <pre><code>&lt;form action="{{url('/edit/profile')}}" method="post"&gt;
  {{ csrf_field() }}
  </code></pre>
  
  <p>My function inside LoginController</p>
  
  <pre><code>public function updateUser(Request $request)
  {
      //insert code here
  }
  </code></pre>