📜  foreach 空 laravel - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:09.392000             🧑  作者: Mango

代码示例1
@forelse($status->replies as $reply)
    

{{ $reply->body }}

@empty

No replies

@endforelse Check the documentation for the best result: http://laravel.com/docs/5.1/blade#control-structures