if(count($data) == 1){
return view('welcome');
}
else {
// echo "dslkfjads";
Redirect::back()->with('message','Username or password not Match!');
}
上述 Redirect::back() 函数在登录时不起作用。如果我打印任何东西它会显示
您必须返回一个响应对象,因此您的代码应如下所示:
if (count($data) == 1) {
return view('welcome');
} else {
return Redirect::back()->with('message', 'Username or password not Match!');
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)