ComponentRegistered) or package discovery.CapyUI::component()) may require middleware or service container tweaks for non-Blade templates (e.g., Inertia.js, Livewire).Button, Modal) with packages like Livewire or Filament.view:compose events to log component usage for debugging.Card, Button) first.composer require themegazord/capyui.php artisan vendor:publish --provider="CapyUI\CapyUIServiceProvider".resources/views/dashboard.blade.php) with CapyUI components.view facade to mix old/new components:
// Before
@include('partials.button', ['text' => 'Click'])
// After
<x-capyui.button>{{ 'Click' }}</x-capyui.button>
config/capyui.php (e.g., default colors, component aliases).@component or custom directives. Test with:
@component('capyui::button', ['text' => 'Test'])
@endcomponent
resources/views/layouts/app.blade.php or via Laravel Mix.vite.config.js:
resolve: {
alias: {
'@capyui': path.resolve(__dirname, 'vendor/themegazord/capyui/resources/assets'),
},
},
x-data attributes for interactivity.@if conditions, form submissions).README.md in /resources/docs).config('debug' => true).dd() or dump() in component views to inspect data.@stack directives for deferred assets.x-capyui.button.primary).| Risk | Impact | Mitigation |
|---|---|---|
| Component rendering fails | Broken UI, partial functionality | Rollback to old templates; add @error fallbacks. |
| Styling conflicts | Visual inconsistencies | Use CSS scoping (e.g., BEM) or shadow DOM. |
| Laravel version mismatch | Package incompatibility | Pin versions in composer.json. |
| No upstream updates | Security/feature stagnation | Fork and maintain; contribute fixes. |
| Overhead from migration | Slow development during transition | Phase rollout; use feature flags. |
How can I help you explore Laravel packages today?