Answers for "laravel check if foreach is empty"

PHP
0

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
Posted by: Guest on February-11-2021

Code answers related to "laravel check if foreach is empty"

Browse Popular Code Answers by Language