[英]Laravel named route pass variable
我正在尝试将变量传递给命名路由:
return redirect()->route('Company.Dashboard.Subscription.Index')->with(compact('message'));
但是在刀片服务器中,我无法访问消息变量。
有任何想法吗?
谢谢!
尝试:
return redirect()->route('Company.Dashboard.Subscription.Index')->with('variable message name','your message here');
要么:
return redirect('your route')->with('variable message name','your message here');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.