Jeremy H.
What's the best way to build a custom index page?
I want an index page for one of my resources to be a grid view vs. a table view. Really, the infolist repeatable would do. What is the recommended way to create a grid index page that will have a card view for each resource?
2 replies
Scoping only to resources user owns.
If I have an admin panel and a user panel, what is the recommended way to scope queries in the user panel only to the resources the logged in user has access to. Currently, I am using a model policy and a global scope on the policy. If the logged in user is an admin I do nothing in the scope and set all policies to true. If the logged in user isn't an admin, I use the queryBuilder to scope just to the resources the logged in user should have access to. Is this the recommended implementation or have I over complicated it?
1 replies