-
Hello there, We are trying to migrate to the Spatie package right now, but we have another role system that already uses the roles() or permissions() relation. The Spatie package also uses these relations on the model. Have we overlooked a way to overwrite this relation name, or is that currently not possible? One idea is to overwrite the vendor files, but that would be our last resort. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is no convenient way to override the relation names in this package. They are quite deeply embedded. |
Beta Was this translation helpful? Give feedback.
There is no convenient way to override the relation names in this package. They are quite deeply embedded.
Additionally the models have interdependent relations which share the same names which brings a complementary convenience, which would be broken if the relation names were changed, and thus would require additional coding to combine related data, and perhaps even additional query load.