archielite/laravel-heroicons
Laravel package to use Heroicons in your app, with easy icon rendering in Blade. Provides a simple way to include solid/outline icons as components, keeping SVGs organized and reusable across views.
@component, @slot), enabling dynamic icon usage (e.g., conditional rendering, slot-based customization) without leaving the PHP stack.<x-heroicon name="user" />).@if($user->admin) <x-heroicon name="shield-check" /> @endif).@component syntax may vary slightly across Laravel 8+).@vite() directives).composer require archielite/laravel-heroicons.php artisan vendor:publish --tag=heroicons-assets.@use directive in Blade layouts: @use('Heroicons\Components\Heroicon').<x-heroicon name="home" />).class bindings).name attribute matches Heroicons).@component usage).php artisan view:cache) for Blade templates using Heroicons.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Package abandonment | No updates, potential breaking changes | Fork the package or switch to JS-based Heroicons. |
| Heroicons breaking changes | Icon rendering failures | Test updates in staging; maintain fallback SVGs. |
| Asset pipeline misconfiguration | Missing SVGs | Validate Vite/Mix config; use CDN fallback. |
| Blade syntax errors | Component rendering fails | Use @dump($__env->componentStack) for debugging. |
@component, @slot).heroicon.name).How can I help you explore Laravel packages today?