Laravel backpack framework admin and user login #1250
-
Hi, I am using the Backpack framework in my Laravel project. And I want to ask how to make login and registration for both admins and users. To keep it separate. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Backpack provides a separate authentication system for admins, which can be used alongside Laravel's default authentication for regular users. Here's how you can set up separate login and registration for both admins and users:
To keep them separate:
By following these steps, you'll have separate authentication systems for admins and users, keeping them distinct and secure. ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️ Relevant sources: FAQs for the admin UI|Use separate login/register forms for users and admins |
Beta Was this translation helpful? Give feedback.
-
Hey @ondrejmlcak I hope the bot's answer helped you figure out the solution. Closing it for now - Feel free to reopen if you don't find the answer satisfactory. |
Beta Was this translation helpful? Give feedback.
Backpack provides a separate authentication system for admins, which can be used alongside Laravel's default authentication for regular users. Here's how you can set up separate login and registration for both admins and users:
For admin authentication:
/admin/login
.config/backpack/base.php
.For user authentication:
php artisan make:auth
(for older Laravel versions) or use Laravel UI/Jetstream for newer versions.To keep them separate:
Backpack uses a separate authentication guard, p…