Download the PHP package marshmallow/nova-fontawesome without Composer
On this page you can find all versions of the php package marshmallow/nova-fontawesome. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download marshmallow/nova-fontawesome
More information about marshmallow/nova-fontawesome
Files in marshmallow/nova-fontawesome
Package nova-fontawesome
Short Description A Font Awesome 6 Field for Laravel Nova 4
License MIT
Informations about the package nova-fontawesome
Font Awesome Icons
A Laravel Nova 4 Field for Font Awesome 6 Icons
Installation:
You can install the package in to a Laravel app that uses Nova via composer:
Then copy FontAwesome v6 css assets to Laravel public path where this plugin will try to access:
- FontAwesome icon definition : http(s)://{fqdn}/css/all.min.css
Usage:
Add the below to app/Nova resources.
Add fontawesome.css to the public/css
You can override the text for the field button like so
You can set a default icon for when an icon has not been set like so. First parameter is the type e.g. far, fas, fab and the second is the icon name (without fa-)
If you want to persist the default icon (when they press clear it brings back the default so it can't be empty) then add the following:
You can limit the icons the user can choose from like so
You can use Font Awesome Pro by doing the following (remember to get your license key!)
Development
Free:
- @fortawesome/fontawesome-free@next
- @fortawesome/fontawesome-svg-core@next
- @fortawesome/free-solid-svg-icons@next
- @fortawesome/free-brands-svg-icons
- @fortawesome/free-regular-svg-icons@next
Pro:
- @fortawesome/fontawesome-pro@next
- @fortawesome/pro-solid-svg-icons@next
- @fortawesome/pro-regular-svg-icons@next
- @fortawesome/pro-light-svg-icons@next
- @fortawesome/pro-thin-svg-icons@next
- @fortawesome/pro-duotone-svg-icons@next
Credits
- All Contributors
Based on Fontawesome Package by mdixon18 & PR from duckzland. See https://github.com/mdixon18/fontawesome
License:
The MIT License (MIT). Please see License File for more information.
All versions of nova-fontawesome with dependencies
laravel/nova Version ^4.0
outl1ne/nova-translations-loader Version ^5.0