Laravel Blade; Blade라라벨 블레이드; 블레이드
.blade.php
resource/views
디렉토리에 저장됨라우트
Route::get('greeting', function () {
return view('welcome', ['name' => 'John']);
});
블레이드 뷰
Hello, {{ $name }}.
if문
@if (count($records) === 1)
I have one record!
@elseif (count($records) > 1)
I have multiple records!
@else
I don't have any records!
@endif
for문