Support the ongoing development of Laravel.io →
Configuration Authentication Security

Hi, I want to integrate Sentinel within Laravel Administrtor

I am new to laravel. Can anyone give me some instructions or hints how i can integrate and configure Sentinel with Laravel Administrator.

My goal is to login the user via sentinel and redirect to laravel admin section. I hope you guys will have an idea.

Thanks

Last updated 3 years ago.
0

Source: http://administrator.frozennode.com/docs/configuration#permission

'permission'=> function()
{
    return Auth::check();
},

That is for default laravel auth, so you will need these for sentry:


'permission'=> function()
{
    // Check if the user is logged in
    if (Sentry::check())
    {
        // Check if the user has access to the admin page
        if (Sentry::getUser()->hasAccess('admin'))
            return true;
    }
    return false;
},

Just dont forget that hasAccess('admin') is a permission so change it the way you need it

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

farukham farukham Joined 18 Feb 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.