-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model will conflict #1
Comments
Hi @jorenvh , Thanks for sharing your idea. Thanks |
Glad I could help. Just thinking but first it was user model but why do you call it rolestrait? It's about uwers? Not that it's wrong but the name says somthing else the. It does. |
Thanks again @jorenvh |
I disagree with naming it UsersTrait. That tells me nothing about the trait when I read it on this line.
Having the word roles in there was way better to describe what it did. I personally would name it like this:
|
Thanks @BrandonSurowiec for giving such a great idea. |
Hi,
Just a tip, Laravel ships allready with a User model. Your model will eventullly conflict with the default one. Instead make a trait and update your docs to tell your users to make the user model use your trait.
Kind regards,
Joren
The text was updated successfully, but these errors were encountered: