This does not work:
return redirect('/view-project-team/' . $projectRequest->id );
What is the right way to pass a variable into the route in this context?
This does not work:
return redirect('/view-project-team/' . $projectRequest->id );
What is the right way to pass a variable into the route in this context?
Copyright © 2021 Jogjafile Inc.
As was said in comments you should use name of the route:
Names can be defined in your router:
Note that:
'id'
inroute()
call is refer to{id}
inRoute::get()
call (names must match).