Extract withoutTrashed method from Exists and Unique rules to DatabaseRule for avoiding duplication #38972
Unanswered
siarheipashkevich
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
Just a proposal for removing duplication from code.
Steps To Reproduce:
https://github.com/laravel/framework/blob/8.x/src/Illuminate/Validation/Rules/Exists.php#L17
https://github.com/laravel/framework/blob/8.x/src/Illuminate/Validation/Rules/Unique.php#L66
Beta Was this translation helpful? Give feedback.
All reactions