I am working on a Laravel project in which I have created a different dashboard for the admin and a different one for the user. I want to make the user’s dashboard display the products assigned to him, that is user1 can see the product box user2 can see the product ball, but neither user can see what product the other user has but only the admin. How can I manage to achieve the above in Laravel?
I should also note that the admin must be able to register a product and declare it to the corresponding user, delete it, and have full control from his panel.
I haven’t tried anything because I can’t determine how to make the above logic work.
Comex is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.