0
根据http://gastonheim.blogspot.com/2013/09/laravel-integrar-sentry-y-administrator.html,我试图合并Sentry和管理员(frozennode)。我希望当我登录时,检查后重定向到管理员管理面板,但不会发生。我更改了routes.php
的代码,但它在我的视图中搜索管理页面。如何将登录页面连接到管理员管理页面?集成管理员和Sentry
Route::post('user/login', function()
{
$credentials = array(
'email' => Input::get('email'),
'password' => Input::get('password'),
);
$remember = Input::get('remember') ? true : false;
$user = SentryTest::authenticate($credentials, $remember);
$adminUrl = Config::get('administrator::administrator.title');
return View::make($adminUrl); /// in this part? which path I should give it?
});
Route::post('user/logout', function()
{
SentryTest::logout();
return Redirect::to('user/login');
});
Route::get('Admin',function(){
return View::make('hello');
});