Showing only their records to the user?
how do we achieve showing only user owned records (as a permission to view only my records) or show all records (as a permission to see all records) across all tables by default? Is it only through roles and permissions (which need to be implemented everywhere) or is there any better way of doing this where it comes by default using a role field of the logged in user? what is the best practice?
1 Reply
modify / override eloquentquery method on resource class