elmahdi/apiato-livewire
Integrates Laravel Livewire with Apiato, letting you build reactive, server-driven interfaces inside an API-first project while keeping Apiato's structure and conventions. Handy for admin panels and dashboards that need dynamic UI without a separate frontend stack.
Release 6.06 is primarily a rendering and styling update: it adds Tailwind-oriented markup, cleans up HTML output, and adjusts where the default $slot is rendered in components. Start by checking the package README and changelog, then inspect the published Blade component views and any Tailwind setup instructions.
Minimal steps:
php artisan vendor:publish --tag=package-views --force
php artisan vendor:publish --tag=package-assets --force
// tailwind.config.js
content: [
'./resources/**/*.blade.php',
'./vendor/package-name/**/*.blade.php',
],
php artisan view:clear
npm run build
First use case: replace a hand-written UI fragment with a package component, pass data through props/attributes, and put page-specific content inside the default slot. This is the fastest way to validate the 6.06 slot-location change and Tailwind output.
Use package components directly in Blade and keep customization in your app layer:
<x-package-component :prop="$value" class="mt-4">
Default slot content
<x-slot:header>
Header content
</x-slot:header>
</x-package-component>
Day-to-day patterns:
$slot as the package component’s main content area. After upgrade, verify that {{ $slot }} is inside the intended wrapper and that named slots are not swallowed by the default slot.content paths. If it uses dynamic class names, safelist those classes.Integration tips:
$slot location explicit.content and rebuild assets. Dynamic classes often need a safelist.$slot location change can alter visual order without throwing an error. Check default slot plus named slots together, not just isolated components.php artisan view:clear after publishing or updating Blade views. Cached compiled views can make fixes appear ineffective.{{ $slot }} for slot output. Avoid manually echoing slot HTML unless you have a specific trusted-HTML reason.$slot but is being rendered without content, or whether a named slot is required.How can I help you explore Laravel packages today?