Skip to content

[5.6] Add new comparison validation rules - #24091

Merged
taylorotwell merged 2 commits into
laravel:5.6from
Alymosul:5.6
May 3, 2018
Merged

[5.6] Add new comparison validation rules#24091
taylorotwell merged 2 commits into
laravel:5.6from
Alymosul:5.6

Conversation

@Alymosul

@Alymosul Alymosul commented May 3, 2018

Copy link
Copy Markdown
Contributor

Modified #23807 to handle 'equals to' and support passing of integers, note that i only allow passing of integers only when the field under comparison is of the integer type

@taylorotwell
taylorotwell merged commit 47580bf into laravel:5.6 May 3, 2018
@taylorotwell

Copy link
Copy Markdown
Member

These will need new language lines in the laravel/laravel repository. Thanks.

@browner12

Copy link
Copy Markdown
Contributor

why are we using shortened names for this? Why not 'greaterThan' instead of 'gt', just like all the other rules? seems very unintuitive, and unlike everything else we see in the framework.

@TBlindaruk

Copy link
Copy Markdown
Contributor

@Alymosul , Could you please create a PR for docs repository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants