Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

A larvel nova icon select field

License

Notifications You must be signed in to change notification settings

Muetze42/nova-icon-select

 
 

Repository files navigation

Ready for: Font Awesome Free 5.15.3 & Font Awesome Pro 5.15.3.

composer require muetze/nova-icon-select

Usage With All Font Awesome Free Icons

NovaIconSelect::make("Icon")
->setIconProvider(FontAwesomeIconProvider::class);

or

NovaIconSelect::make("Icon")
->setIconProvider(new FontAwesomeIconProvider());

Usage With Custom Font Awesome Free Styles

NovaIconSelect::make("Icon")
->setIconProvider(new FontAwesomeIconProvider(['solid', 'regular', 'brands']));

Usage With Font Awesome Pro

Publish the config file:

php artisan vendor:publish --provider="Bernhardh\NovaIconSelect\FieldServiceProvider"
php artisan config:cache
NovaIconSelect::make("Icon")
->setIconProvider(new FontAwesomeIconProvider(['solid', 'regular', 'light', 'brands'], 'pro'));

Duotone is not included. Or does anyone need them in this package?


See the original repository for more examples, info and uses:
bernhardh/nova-icon-select

About

A larvel nova icon select field

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • PHP 99.8%
  • Other 0.2%