Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

foreach empty laravel

@forelse($status->replies as $reply)
    <p>{{ $reply->body }}</p>
@empty
    <p>No replies</p>
@endforelse
  
Check the documentation for the best result:  
http://laravel.com/docs/5.1/blade#control-structures
 
PREVIOUS NEXT
Tagged: #foreach #empty #laravel
ADD COMMENT
Topic
Name
6+1 =