Skip to content

creating model instance using new, model() and Factories #373

Answered by MGatner
hatsat32 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. As it stands, you cannot have both models name "UserModel" and have Myth:Auth ignore your version in App. You could give your version a different name, or put it in a different folder (like app/Auth/UserModel.php). One solution (which might be a good idea) would be to have Myth:Auth use the instanceOf flag to make sure it is using a version of its own model - this would ignore your model (assuming it does not extend Myth's).
  2. Extending versing publishing is up to you. A lot of people prefer to publish the module components into they project, which gives full control over the code. The downside is that when there are updates to Myth:Auth you have to be sure to integrate them yourself. I mu…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@hatsat32
Comment options

Comment options

You must be logged in to vote
1 reply
@hatsat32
Comment options

Answer selected by hatsat32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants