www.mjjq.net > lArAvEl rEDirECt to

lArAvEl rEDirECt to

public官给默认路径要改php artisan servePHP+5.4内置发服务器使用Apache或Nginx作自服务器建议使用laravel官推虚拟盒homestead,非用 参考篇文章中国//blog.csdn中国/leijun19930412/article/details/43374349

亲,我帮你找到了这几个地方,不知道你要的是哪个,你可以都进去看下!~~ vendor\symfony\routing\Tests\Fixtures\RedirectableUrlMatcher.php vendor\symfony\routing\Symfony\Component\Routing\Tests\Fixtures\RedirectableUrlMatcher.php ve...

是的 可以的 希望采纳 谢谢

$discussion = Discussion::create(array_merge($request->all(),$data));return redirect()->action('Controller@index',['id'=>$discussion->id]);

$discussion = Discussion::create(array_merge($request->all(),$data));//添加return redirect()->action('Controller@index',['id'=>$discussion->id])

1 2 $discussion = Discussion::create(array_merge($request->all(),$data)); return redirect()->action('Controller@index',['id'=>$discussion->id]);

//控制器中return back()->with('success','操作成功');//with的参数1是一个session变量名,参数2为该session变量值,在视图直接这样获取@if(!empty(session('success'))){{session('success')}}@endif

网站地图

All rights reserved Powered by www.mjjq.net

copyright ©right 2010-2021。
www.mjjq.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com