我在控制器方法的最上面:
namespace App\Http\AdminControllers;
public function signIn(Request $request) {
return redirect()->intended('Am/Index/index', $request);
}
这将跳转到Index控制器的index方法,但是现在问题来了,并没有进行跳转,而是程序报错:
Object of class Illuminate\Http\Request could not be converted to int
可是之前我一直都是这样写的...不知道为什么会报错呢,我只是将请求转发的目的.
请各位大大给点意见,谢谢各位啦.
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号