if语句 {{$score}} @if($score<=60) 不及格; @else 及格; @endif for循环 //for循环, 循环输出1-9 @for($i=0;$i<10;$i++) {{$i}} @endfor foreach循环 @foreach($user as $u) {{$u}} @endforeach forelse循环并判空 @forelse($user as $u) {{$u}} @empty 暂无记录 @endforelse