-
Notifications
You must be signed in to change notification settings - Fork 17
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
Refactor ExistsByHash to allow chaining query builder methods #121
Conversation
e55b673
to
a4f1bce
Compare
I added one more commit to use qualified columns in |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #121 +/- ##
===========================================
Coverage 100.00% 100.00%
- Complexity 46 53 +7
===========================================
Files 5 5
Lines 106 124 +18
===========================================
+ Hits 106 124 +18 |
Ho @EriBloo thanks for the contributions, I noticed that if we push this, we should drop support for laravel 7-9, due to deprecation in I wouldn't mind to release it under 4.x version, please also update the workflow to only include laravel 10. |
…y#120) Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 10.5.7 to 10.5.10. - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/10.5.10/ChangeLog-10.5.md) - [Commits](sebastianbergmann/phpunit@10.5.7...10.5.10) --- updated-dependencies: - dependency-name: phpunit/phpunit dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…asky#118) Bumps [orchestra/testbench](https://github.com/orchestral/testbench) from 8.20.0 to 8.21.1. - [Release notes](https://github.com/orchestral/testbench/releases) - [Changelog](https://github.com/orchestral/testbench/blob/develop/CHANGELOG-8.x.md) - [Commits](orchestral/testbench@v8.20.0...v8.21.1) --- updated-dependencies: - dependency-name: orchestra/testbench dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Hi @veelasky. I work with Laravel 10 so I naturally pushed version compatible with it and forgot that current version is used by older Laravel as well. I don't mind refactoring it to the older Rule interface if you'd like, there is no reason to force next major version. Please tell me which approach is better for you ;) Edit: I'm not sure how refactor would fit with custom message and attribute, would have to check it first. |
Hello @EriBloo, Given the current situation, as there hasn't been a significant feature update, I aim to continue supporting lower Laravel versions, unless the deprecated class is removed or until a major feature such as prefix/suffix support is introduced. |
I understand. But I'm not sure which approach you would like to take with this PR. Would you prefere me to refactor it to support Laravel versions 7-9 or release it under 4.x as is? |
Hi,
I recently switched one of our projects to this package. For previous package I had created validation rule which I have adapted to work with yours.
This validation rule is based on Laravel Exists rule and allows chaining constraints on query builder:
I also added support for custom message and attribute so you could do:
to get
Incorrect user
validation message. If no custom rule was specified there is a fallback to Exists rule message.