Closed marvinosswald closed 2 years ago
Hi @marvinosswald!
you can use Redirecting To Named Routes
In your case:
$redirectToDropPrivate = redirect()->route('drop.private', ['drop' => $drop]);
$action->response($redirectToDropPrivate);
I hope this can help you
Hi @cesargb
Thanks for your quick response, sadly i tried that as well and again now - same result.
$action->response(redirect()->route('drop.private', ['drop' => $drop]));
I found a workaround:
new RedirectResponse(route('drop.private', ['drop' => $drop]))
as in your example i'm trying to redirect with the following line
$action->response(redirect(route('drop.private', ['drop' => $drop])));
if i use:
$action->redirect(route('drop.private', ['drop' => $drop]));
it works but only writes out the url not a location header.
Laravel 9 PHP 8.1 magiclink ^2.12