IMPROVEMENT
WHAT'S NEW:
- Added Before Backend Access Hook
UPGRADE GUIDE:
1st Run:
composer update "darryldecode/laravelbackend"
2nd, on config/backend/backend.php:
add this:
/*
* Before Backend Access Hook
*
* Here you can check if user is in groups or has permissions to redirect to any route
* you want when it does not matches your criteria to access the backend
*/
'before_backend_access' => function($user) {
}