【发布时间】:2013-05-28 15:02:49
【问题描述】:
尝试路由回包含验证检查错误的页面。这不起作用,这样做的正确方法是什么?
$route = "staff/" . $staff->staff_id;
return Redirect::to_route($route)
->with_errors($validation);
【问题讨论】:
-
将它作为数组传递我的错误:return Redirect::to_route('staff', array($staff->staff_id)) ->with_errors($validation);