Reputation: 123
I want to use BackPack for Laravel to manage the contents/users of my WebApp.
My WebApp have users, and these users can access to another private area (outside BackPack)
I want that the users don't have access to the BackPack Admin Panel when the're logged in. Also, even they can't never access to /admin
Is that possible?
Upvotes: 0
Views: 754
Reputation: 6193
Yes, that's the default in Backpack v5. Make sure you use separate login forms and middleware for your users and admin:
backpack
middleware for the adminsauth
middleware for your usersAlternatively, you can use the same login forms and middleware, and use the App\Http\CheckIfAdmin.php
middleware to define what makes an admin and admin.
Upvotes: 1