Thoughts?
Roles Permissions Continuation
This post is for everybody but espcially @Ruffles and @kodeine.
I want to venture back for a second to recover a topic from a couple of weeks ago. When dealing with user roles and permissions I'm trying to figure out how I should be keeping them in my database.
https://laracasts.com/discuss/channels/general-discussion/user-rolesgroupspermissions
This question is in extension of that post. My current database schema is as follows.
http://www.laravelsd.com/share/SstkiH
My question is how should I be naming my permissions because lets say a lot of permissions like:
create-post
edit-post
view-post
update-post (seems redundant but I figure another line of protection against people trying to update that can't)
store-post (same reason as above)
And that's just my post/articles resource I have so many more. Is there an easier way or do I just need to continue on like I was doing and list them all out.
Please or to participate in this conversation.