Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel foreach else

@forelse($status->replies as $reply)
    <p>{{ $reply->body }}</p>
@empty
    <p>No replies</p>
@endforelse
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #foreach
ADD COMMENT
Topic
Name
8+1 =