kirkbushell / eloquence

A drop-in library for certain database functionality in Laravel, that allows for extra features that may never make it into the main project.
MIT License
537 stars 60 forks source link

feat: add "where" config option to cacheable #89

Closed jaulz closed 10 months ago

kirkbushell commented 3 years ago

Can I get a squash on those commits? Repeated commit messages are not great for commit history.

jaulz commented 3 years ago

@kirkbushell sure, here you go 😊

jaulz commented 3 years ago

Yep, will work on it 😊

jaulz commented 3 years ago

@kirkbushell I just extended the tests and the README. Could you please check it?

jaulz commented 3 years ago

For anyone interested in this, I forked the repository and extended the conditions to even support not equal etc.: https://github.com/jaulz/eloquence/

@kirkbushell let me know in case you want it to be part of this package.

kirkbushell commented 3 years ago

For anyone interested in this, I forked the repository and extended the conditions to even support not equal etc.: https://github.com/jaulz/eloquence/

@kirkbushell let me know in case you want it to be part of this package.

Yup, will do - just been a bit hectic of late.

kirkbushell commented 10 months ago

I'm looking at changing how this functions in 11.0. Instead of using array syntax, looking at a better approach, potentially a template pattern where you can define any clauses you need.

I'm also moving away from using DB, as it's now better handled using transactions.