© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Faiz
dev
why wouldn't you use traits?
I will rate the second method 1 on the scale of 1 to 10. Its just too bad nobody want to pass around the user object for checking permissions.
Emil Moe
Senior Data Engineer
That I agree, otherwise it would be fine. Problem with trait is that you always need the permission to exist then and that would kill the concept.