Created
October 7, 2012 19:58
-
-
Save matiit/3849399 to your computer and use it in GitHub Desktop.
forelse in laravel template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Very nice and usefull! | |
*/ | |
@forelse ($users as $user) | |
{{ $user->name }} | |
@empty | |
<p>There are no users.</p> | |
@endforelse |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment