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
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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community