Im using this code from the current Laravel documentation
return redirect()->action(
'UserController@profile', ['id' => 1]
);
And changed it to my own controller like this:
return redirect()->action('ProjectController@showProject',['id'=> 2]);
My route: Route::get('/crm/project/{id}', 'ProjectController@showProject');
According to my F12
this is my request url http://127.0.0.1:8000/back/crm/project/2
Which is correct. But im getting the following error: 405 Method Not Allowed
.
This is the start of my stacktrace:
{message: "", exception: "Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException",…}
Thanks in advance.
Edit: Added route.