hi according http://gastonheim.blogspot.com/2013/09/laravel-integrar-sentry-y-administrator.html I tried to merge sentry with administrator (frozennode). I expect when I login ,after check I redirect to the administrator Admin panel, but it doesnt happen. I change the code for rout.php but it search an Admin page in my view . how can I connect the login page to administrator Amin page ?
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');
});
thanks for your time .
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community