【发布时间】:2018-10-25 15:22:34
【问题描述】:
我有一个 url,我想进行重定向,我想保留 url 参数。 我正在使用 ->with 方法,但它不起作用。
示例: http://mywebsite.local/product-name-random?select_article=710
我想将此网址重定向到: http://mywebsite.local/father-category-of-this-product?select_article=710
我正在使用此代码,但它不起作用:
return redirect()->route('web.custom_url', $father_cathegory->seo->slug)->with('select_article', Input::get('select_article'));
->with() 不起作用。什么都没有发生。
我正在使用 Laravel 5.5。
【问题讨论】:
-
错误是什么?
-
请检查下面的链接可能对你有帮助stackoverflow.com/questions/25765874/…
-
$father_cathegory->seo->slug是做什么的?
标签: php laravel laravel-5 laravel-5.5