I'm trying to create from scratch a role-based permission layer as I've come back from a hiatus recently and it will help me with getting back into the swing of it.
I'm trying to do as much without looking at other packages as it'll will end up being the same if I do and I don't feel I'd learn as much.
Question
What the would be the best way to retrieve all permissions a user has through the roles they currently have?
I'd ideally like my interaction with my user model to end up like: $user->permissions
Database Setup
Eloquent Relations
I also have the following relations setup in my Eloquent models: