我正在使用laravel 4进行我们正在进行的项目并使用Sentinel,这是一个哨兵实现。包裹链接如下
https://github.com/rydurham/Sentinel
当我登录时,我需要执行一个指向仪表板页面的路由。我的代码如下appnet文件夹下的filters.php
Route::filter('auth', function()
{
if (Auth::guest())
return Redirect::guest('login');
else if (!Auth::guest())
return Redirect::to('dashboard');
});
但它不起作用。有人可以帮忙吗?
答案 0 :(得分:0)
https://github.com/rydurham/Sentinel
此软件包使用Sentry 2p>
参考:{{3p>