Support the ongoing development of Laravel.io →
Authentication Database Eloquent

Hey people, I've some question to ask and i need some help and guidance and your expertise advises. If i were to have 3 kinds of users, Merchant, Admin and users which they have their own specific things that they could do. Creating 3 tables will it be a good idea? Put it in short about this 3 types of users. Admin sees all, Customer only could see product that merchants posted. The 3 types of user has different kinds of database fields that are required.

If it's necessary to have 3 different tables, how laravel can do to authenticate them at a different table and knowing that there's role in them.

After being authenticated, how do i filter out the pages. Users can't access the admin page and merchant can't access the admin's . Do i have to type in manually in every single routes and every single controller?

Thanks!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

xdropzz xdropzz Joined 1 May 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.