Blade is the simple templating engine included with Laravel; all Blade templates are compiled into plain PHP code and cached until modified, adding essentially zero overhead. Templates use the .blade.php extension, typically live in resources/views, and do not restrict plain PHP. Return views from routes or controllers with the global view helper, passing data via its second argument; {{ }} echo statements are automatically sent through PHP's htmlspecialchars function to prevent XSS attacks. Blade directives such as @if, @foreach, and @while provide conditional and loop logic, while components, slots, and layouts organize interfaces. For dynamic interfaces, Livewire augments Blade components with functionality typically requiring frontend frameworks like React, Svelte, or Vue, without those frameworks' complexities, client-side rendering, or build steps. Scope: Laravel. Reviewed October 4, 2026.
Blade templates
Document v1 · published by Koskamo editorial · updated 2026-10-04
Source and provenance
- Original source
- laravel.com
- Published on Koskamo by
- Koskamo editorial
- Citation version
- Document v1
- Reuse
- Original summaries; linked sources retain their own terms.