nasirkhan/laravel-cube
Laravel Cube provides reusable Blade UI components with dual support for Tailwind CSS (Flowbite) and Bootstrap 5. Switch frameworks globally or per component, includes dark mode for Tailwind, Livewire-friendly, and easy to customize via published views.
composer require), with minimal configuration (.env setting for default framework). No database migrations or complex setup required.laravel-sharekit) are optional, avoiding bloat.<x-cube::button framework="bootstrap">) may lead to inconsistent styling if not managed rigorously. Teams must document framework usage conventions.tailwind.config.js is configured to process the package’s utility classes. Misconfiguration could break styles.Framework Strategy:
Tailwind Configuration:
tailwind.config.js already optimized to handle third-party utility classes? If not, additional setup is required.Livewire Integration:
Customization Needs:
laravel-sharekit)? If yes, ensure they align with the project’s social sharing or analytics needs.Long-Term Viability:
Assessment Phase:
Pilot Implementation:
<x-cube::button> and validate styling.Gradual Rollout:
input, select, checkbox) for consistency in data entry flows.nav-link, dropdown) across the app.card, modal, badge) for shared layouts.Framework Transition (Optional):
CUBE_FRAMEWORK=tailwind globally but override specific components to Bootstrap during transition.button) may cause namespace collisions. Use @include or @component directives if needed.| Step | Task | Dependencies | Notes |
|---|---|---|---|
| 1 | Install Package | None | composer require nasirkhan/laravel-cube |
| 2 | Configure Default Framework | .env |
Set CUBE_FRAMEWORK=tailwind or bootstrap |
| 3 | Tailwind Setup (if applicable) | Tailwind CSS | Add @import to stylesheet |
| 4 | Publish Views (Optional) | None | php artisan vendor:publish --tag=cube-views |
| 5 | Pilot Component Replacement | Step 4 | Test on non-critical pages |
| 6 | Customization | Step 5 | Override styles/views as needed |
| 7 | Documentation | Step 6 | Document framework usage rules |
| 8 | Full Rollout | Step 7 | Replace components across the app |
composer update).nasirkhan/laravel-cube for breaking changes, especially if using per-component framework overrides.nasir8891@gmail.com) for security issues.icons.md).How can I help you explore Laravel packages today?