Skip to content

Conversation

@LKaemmerling
Copy link
Contributor

@LKaemmerling LKaemmerling commented Apr 9, 2017

As addition of #18425 it would be nice if the @empty statement can be used outside of an forelese.

This PR implements this in a Non Breaking Change way.

So you can use it with:

@empty($array)
This Array is Empty!
@endempty

instead of

@if(empty($array))
This Array is Empty!
@endif

This has no impact to the @forelse statement.

@LKaemmerling LKaemmerling changed the title [5.4] Implement standalone if empty in as NB-Change-Way [5.4] Implement standalone if empty in a NB-Change-Way Apr 9, 2017
@taylorotwell taylorotwell merged commit 3687363 into laravel:5.4 Apr 9, 2017
@LKaemmerling
Copy link
Contributor Author

Thank you!

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.

2 participants