Keep permissions and roles in sync between application and database #1702
-
I'm wondering what the best strategy is to keep permissions and roles used in your application in sync with what's in the database. In the docs there is a part about seeding the database but in a Laravel application in production we don't seed the database anymore. When new functionality is added (with possibly new permissions), how do we make sure these also end up in the database. One solution would be to make migrations to add permissions to the database but this doesn't seem ideal. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That is exactly the best approach, because migrations exist to keep the database in sync with application code. |
Beta Was this translation helpful? Give feedback.
That is exactly the best approach, because migrations exist to keep the database in sync with application code.