Skip to content

[5.5] make Request::has() work like Collection::has() - #18715

Merged
taylorotwell merged 1 commit into
laravel:masterfrom
themsaid:requestHasFilled
Apr 7, 2017
Merged

[5.5] make Request::has() work like Collection::has()#18715
taylorotwell merged 1 commit into
laravel:masterfrom
themsaid:requestHasFilled

Conversation

@themsaid

@themsaid themsaid commented Apr 7, 2017

Copy link
Copy Markdown
Member

Currently Request::exists() work like Collection::has().

In this PR:

-Request::has() will work like Collection::has().
-Request::exists() was removed.
-Request::filled() was added to work like old Request::has().

@laurencei

laurencei commented Apr 7, 2017

Copy link
Copy Markdown
Contributor

Rather than removing Request::exists() - is it worth perhaps leaving it and under the hood just call Request::has()? i.e. make it an alias?

One less breaking change for everyone to worry about during the upgrade?

@taylorotwell
taylorotwell merged commit 2d22de0 into laravel:master Apr 7, 2017
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.

3 participants