Skip to content

Hide rows in table for which the current user do not have permission to view and edit #2682

Answered by danharrin
on3ss asked this question in Help
Discussion options

You must be logged in to vote

It's much better to add the scope to the Eloquent query, since looping through records to check for permissions is not performant.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@on3ss
Comment options

Answer selected by on3ss
Comment options

You must be logged in to vote
2 replies
@kevinrrm
Comment options

@xuanbach1992
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants