teamoceancode's avatar

Need Help in Building Store Employee In E-Commerce

Hi All I am Trying to Build a Store Employee Module For An E-commerce Portal . I have a Multi-Vendor E-Commerce Portal where A User Can have many Employee for their store to manage Order,Products etc

Here is a Best Example That Suits my Requirement

Suppose Employee1 is a Product Manager for Dell Store in India so Employee 1 should have all the Access to Dell Product that Belongs to Store India

Employee 1 is also have Order Manager Role for Dell Store in Dubai so Employee 1 Should have all the Access to Dell Orders that Belongs to Store Dubai

0 likes
7 replies
ronty's avatar

eloquent Relationship Query for this is depend on how you define all database table and relation between them..

teamoceancode's avatar

i have a Table called store_employee that have following column

store_id, employee_id, owner_id (store Owner ID)

if want i can modify Table.
Owner_id is the Store Owner whose Data will be Fetch eg.Product and brands and Contacts

martinbean's avatar

@teamoceancode Just store users in a single table, and assign them roles. If a user can be en employee of a store, create a pivot table. Otherwise you’re going to have to maintain separate authentication drivers for each of your user types (customers, employees, administrators, affiliates, etc).

martinbean's avatar

@teamoceancode Please post your code in the thread as even if I can’t help, someone else may be able to step in and assist. I’m afraid I’m not in a position to offer free, one-on-one consulting.

Please or to participate in this conversation.