Okipa / laravel-model-json-storage

Storing your models in a json file rather than in database (single or few lines recording) can be a good option. This package saves you to create a table for a ridiculous amount of lines, improves the data recovery performances, and allows you to store and access to your models from a json files as you would do it in database.
MIT License
25 stars 16 forks source link

overrriden eloquent #3

Open hubsmall opened 5 years ago

hubsmall commented 5 years ago

Hi! Thanks for the tool! Testing currently, good job, but got one issue. So, now eloquent all() method is overriden by your lib and I can not use usual eloquent database-ment $chanels = Chanel::all(); to get all chanels from actual db, if I do not need json-storage?

Okipa commented 5 years ago

Hi @hubsmall,

You're right, the only possible use cases for the moment are listed in the readme. This package has been created for very simple use cases but it can easily be improved.
Unfortunately, I do not have time right now to check the possibility to implement a fix for your problem (currently creating a few other packages). I suggest you to dig into this and I would be happy to merge a tested and documented PR.