spatie/laravel-blade-x
Blade-X brings Blade-style HTML components to Laravel 6 and below, letting you use tags like instead of @include. Package is abandoned because Laravel 7+ has native Blade components; migrate when upgrading.
spatie/laravel-blade-x for Laravel 6.x projects to avoid breaking changes during migration to Laravel 7+.<my-alert> vs. @include) without upgrading the entire stack."This package lets our frontend team build reusable UI components in Laravel 6.x with cleaner syntax (e.g., <my-alert> instead of @include), reducing technical debt and speeding up development. It’s a low-risk way to modernize Blade templates without upgrading the entire stack—critical for legacy systems or projects with constrained timelines. Since Laravel 7+ already supports this natively, it’s a temporary but valuable tool for teams stuck on older versions."
*"Spatie’s laravel-blade-x provides a lightweight, MIT-licensed way to use modern Blade component syntax in Laravel 6.x. It’s ideal for:
"This package lets you write Blade components like <card> or <alert> instead of @include('card'), with props and slots support. It’s a game-changer for Laravel 6.x if you’re tired of verbose @include calls. Just add it via Composer, and you’re good to go—no complex setup. But: Only use it if you’re stuck on Laravel 6.x. Once you upgrade, switch to native components or modern tools."
How can I help you explore Laravel packages today?