CRUD Controller for enum value #678
-
Hi, I have a table called contents, it consists of id, page (enum), title, description and index. I was wondering if this is possible and how? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @woutvdpol i'm not very sure if i correctly understand the requirement you raise, but if what you indicate is that you need to generate as many controllers as your model has enums, you could think about applying a global scope to restrict, for example, the results of the list that will be managed by that controller, here is an example of "addGlobalScope" in our documentation Cheers |
Beta Was this translation helpful? Give feedback.
Hi @woutvdpol i'm not very sure if i correctly understand the requirement you raise, but if what you indicate is that you need to generate as many controllers as your model has enums, you could think about applying a global scope to restrict, for example, the results of the list that will be managed by that controller, here is an example of "addGlobalScope" in our documentation
Cheers