imanghafoori1 / eloquent-mockery

Mock your eloquent queries without the repository pattern
MIT License
129 stars 18 forks source link

Remove dev flag for install #23

Closed morrislaptop closed 1 year ago

morrislaptop commented 1 year ago

When installing deps in a production environment, the dev dependencies are often not included (e..g Heroku)

However to use this package we need to include the trait in the models which is in our production code.

Ironically, most tests will still pass because the test deps are included when running tests...

But when running on prod, if the dev dependencies aren't included, then this causes an exception saying Trait "Imanghafoori\EloquentMockery\MockableModel" not found

imanghafoori1 commented 1 year ago

The readme is according to the latest changes of the dev-main branch. We are moving to a state that does not need any traits on the models and making this package a dev-only one.

morrislaptop commented 1 year ago

@imanghafoori1 is this public? Can I test it out?

imanghafoori1 commented 1 year ago

just install the dev-main version.