Components & Slots: Aliasing Components

Use Illuminate\Support\Facades\Blade;

Blade::component('components.alert', 'alert');
@alert(['type' => 'danger'])
    You are not allowed to access this resource!
@endalert
@alert
    You are not allowed to access this resource!
@endalert

Components & Slots: Aliasing Components — Structure map

Clickable & Draggable!

Components & Slots: Aliasing Components — Related pages: