secondnetwork/blade-tabler-icons
Laravel package that integrates Tabler Icons into Blade. Use simple Blade components or directives to render SVG icons with configurable size, stroke and classes, enabling clean, consistent icon usage across your app without manual SVG copying.
Pros:
Cons:
secondnetwork/blade-tabler-icons).@tablerIcon('name')) in views.public or storage directory is writable.@tablerIcon directives.<i class="fas fa-home"></i>) with @tablerIcon('home').@tablerIcon('home', ['class' => 'text-blue-500'])
bootstrap or app.blade.php includes the generated sprite file.composer require secondnetwork/blade-tabler-icons.php artisan vendor:publish --tag=tabler-icons.composer update secondnetwork/blade-tabler-icons).php artisan view:clear).composer.json to avoid unexpected breaking changes.display: inline-block vs. display: inline-flex).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Package unmaintained | Broken icons, security risks | Fork the repo or migrate to Tabler’s official CDN. |
| Blade cache corruption | Stale icons | Implement cache busting or use ?v={{ hash }}. |
| Missing icon in package | Manual workarounds | Maintain a local icon registry or contribute to the package. |
| CSS conflicts | Rendering issues | Scope icon styles to a BEM class (e.g., .icon-tabler). |
| SVG sprite generation fails | Icons not loading | Fall back to direct SVG includes or CDN. |
@tablerIcon directive syntax and available icons.icon-home, icon-settings).How can I help you explore Laravel packages today?