Laravel Community Tools by Tighten
Laravel Nova icon Nova Packages
N

FontAwesome Field

Installation Instructions

You can install the package in to a Laravel app that uses Nova via composer:

composer require mdixon18/fontawesome

Usage:

Add the below to app/Nova resources.

  use Mdixon18\Fontawesome\Fontawesome;

  Fontawesome::make('Icon')

You can override the text for the field button like so

  Fontawesome::make('Icon')->addButtonText('Click Me!')

Readme

FontAwesome Icons

A Laravel Nova FontAwesome Icon field

Installation:

You can install the package in to a Laravel app that uses Nova via composer:

composer require mdixon18/fontawesome

Usage:

Add the below to app/Nova resources.

  use Mdixon18\Fontawesome\Fontawesome;

  Fontawesome::make('Icon')

You can override the text for the field button like so

  Fontawesome::make('Icon')->addButtonText('Click Me!')

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-)

  Fontawesome::make('Icon')->defaultIcon('far', 'check-circle')

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:

  Fontawesome::make('Icon')->addButtonText('Click Me!')->defaultIcon('far', 'check-circle')->persistDefaultIcon()

You can limit the icons the user can choose from like so

  Fontawesome::make('Icon')->only([
    'facebook',
    'twitch',
    'twitter',
  ])

You can use FontAwesome Pro by doing the following (remember to get your license key!)

  Fontawesome::make('Icon')->pro()

Support:

mdixon14717@gmail.com

License:

The MIT License (MIT). Please see License File for more information.

Screenshots

Reviews

By Andreas Ek on February 11, 2021

Duplicate register of FA-libs sometimes. Need more control of render this...

Back to Top
Added 7 years ago
Last updated 5 Years Ago
Version v0.2.1
Composer
mdixon18/fontawesome
GitHub stars 16
Packagist downloads 193,943

Favorites

27 users favorited

Rating

4.90
(out of 5)
★★★★★
★★★★
★★★
★★
7 ratings

Author

Brought to you by Tighten

Issues/Feature Requests Stats Package Ideas