magnatiwe / laravel-backpack-select2-svg
Select2 for picking inline svg icons in backpack admin panel.
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Language:HTML
Requires
- php: ~7.2
- illuminate/database: ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0
- illuminate/support: ~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0
- meyfa/php-svg: ^0.9.1
This package is auto-updated.
Last update: 2025-04-11 18:02:32 UTC
README
Select2 for picking inline svg icons in backpack admin panel.
Installation
Publish view
php artisan vendor:publish --provider="Magnatiwe\Laravel\Backpack\SelectSvgField\SelectSvgFieldServiceProvider"
Usage
CRUD::addField([ 'name' => 'svg_icon', 'label' => 'Svg icon', 'type' => 'select2_svg', 'svg_path' => 'assets/img/sprite.svg', // path to your svg file 'allows_null' => true, ]);