0

I have

  • table groups
  • table group_has_permissions (as pivot table)

I dont want to create permissions table because I knew there would be like 3 fixed permission . I think its kinda overkill to create a table for 3 rows only.

So I went on a search for alternative

But when I got into articles, I found that the enums/class constant are stored within the same model/table and do not work with eloquent relations. What I do want is instead of creating a table/model for the permissions table I would like to refer it in a more simple config array or enums/class constants.

0 Answers0