2. Aliasing include (ok)
use Illuminate\Support\Facades\Blade;
public function boot()
{
Blade::include('includes.room', 'room');
}@room(['name' => 'Lê Chí Huy'])Previous1. Laravel cung cấp cho chúng ta thẻ @include, @includeIf, @includeWhen, @includeFirst (ok)Next3. Rendering views for collections (ok)
Last updated