扫码关注官方订阅号
如题:验证通过后,想跳转到其他的控制器,所以像文档说的,在authcontroller里加入$redirectPath='/app',不起作用,后加入$redirectTo = ‘/app’仍然没有作用。我该如何是好呢?
欢迎选择我的课程,让我们一起见证您的进步~~
AuthController.php添加
protected $redirectAfterLogout = 'auth/login';//退出跳转 protected $redirectTo = 'admin/post';//登录跳转
在 app/Http/Auth/AuthController.php 中添加如下语句:
app/Http/Auth/AuthController.php
protected $redirectPath = '你跳转的地址';
PHP学习
技术支持
返回顶部
AuthController.php添加
在
app/Http/Auth/AuthController.php
中添加如下语句:protected $redirectPath = '你跳转的地址';