Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Laravel 4 成功登录后的Laravel Sentinel重定向_Laravel 4 - Fatal编程技术网

Laravel 4 成功登录后的Laravel Sentinel重定向

Laravel 4 成功登录后的Laravel Sentinel重定向,laravel-4,Laravel 4,我正在使用Laravel4进行我们正在做的一个项目,并使用sentinel,这是一个sentry实现。软件包的链接如下所示 https://github.com/rydurham/Sentinel 当我登录时,我需要执行一个路由,该路由指向仪表板页面。我的代码如下所示,位于app文件夹下的filters.php中 Route::filter('auth', function() { if (Auth::guest()) return Redirect::guest('

我正在使用Laravel4进行我们正在做的一个项目,并使用sentinel,这是一个sentry实现。软件包的链接如下所示

https://github.com/rydurham/Sentinel
当我登录时,我需要执行一个路由,该路由指向仪表板页面。我的代码如下所示,位于app文件夹下的filters.php中

Route::filter('auth', function()
{
    if (Auth::guest()) 
        return Redirect::guest('login');
    else if (!Auth::guest())
        return Redirect::to('dashboard');
});
但它不起作用。有人能帮忙吗

https://github.com/rydurham/Sentinel
这个软件包使用Sentry2

参考: