tp5 return redirect()->restore(); 不跳转

浏览:1557 发布日期:2018/10/24 分类:求助交流 关键字: redirect restore thinkphp5 跳转
public function __construct()
    {
        parent::__construct();
        return redirect('hello')
                ->with('name', 'thinkphp')
                ->remember();
    }
}
这样跟本不跳 转啊,是为什么呀,在非 __construct() initialize() 方法中却可以跳转
return redirect()->restore();
也是一样,不知道是为什么呀
最佳答案
评论( 相关
后面还有条评论,点击查看>>