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.
When you register a component
BladeX::component('components.myAlert')
with this HTML
{{-- resources/views/components/myAlert.blade.php --}}
<div class="{{ $type }}">
{{ $message }}
</div>
and use it in your Blade view like this,
<my-alert type="error" :message="$message" />
our package will replace that HTML in your view with this:
[@component](https://github.com/component)('components/myAlert', ['type' => 'error','message' => $message,])[@endcomponent](https://github.com/endcomponent)
After that conversion Blade will compile (and possibly cache) that view.
Because all this happens before any HTML is sent to the browser, client side frameworks like Vue.js will never see the original html you wrote (with the custom tags).
How can I help you explore Laravel packages today?