Description

Looking for another more-systemic way to prevent users from seeing other user's content than using if statements to check for auth::user->id == record->createdby-id every time I pull a record. I looked at the Spatie package but couldn't figure out from the docs how to apply that in this case. There are many authentication/access tutorials and examples, but they all deal with role access or page-level/routing access, not user-record access. A Larastream on how to prevent a user from seeing other users' content would be excellent.

0 1

Comments ({{ comments.length }})

{{ comment.comment }}

{{ comment.created_at_ago }}
© 2018 Larastream.com.