我在Controller中有以下__construct()(这只是用于测试):
public function __construct( ) {
$this->middleware( 'auth' );
return redirect('http://www.google.com');
}
应用程序根本不会重定向到外部URL,而只是流过并继续进入被调用的方法。无奈之下我在没有return指令的情况下尝试了它,但是同样的行为发生了。我错过了重定向电话吗?
答案 0 :(得分:1)
$(".click-count").fadeIn(500).show(function()
{
count.html(data);
});
将创建对外部网址的重定向响应
Redirect::away