[英]Changing redirect path in laravel
public function submitStore ( Request $r )
{
$site->url = $uri;
}
// redirect to the new listing
return redirect()->route( 'home' );
I want to redirect it to https://example.com/$uri
instead of redirecting to 'home'
How can I do this?我想将其重定向到
https://example.com/$uri
而不是重定向到'home'
我该怎么做? Thank you for helping谢谢你的帮忙
A quick look at the documentation here: https://laravel.com/docs/8.x/responses#redirecting-external-domains快速查看此处的文档: https://laravel.com/docs/8.x/responses#redirecting-external-domains
gives you给你
return redirect()->away('https://www.google.com');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.