Support the ongoing development of Laravel.io →
Authentication Packages

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 .

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

prgmsaha prgmsaha Joined 20 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.