Looking to hire Laravel developers? Try LaraJobs

fa-laravel maintained by regnilk

Description
Laravel component for FontAwesome integration with Blade
Author
Last update
2020/12/15 21:53 (dev-master)
License
Downloads
357

Comments
comments powered by Disqus

Fa-Laravel

Laravel component for FontAwesome integration with Blade

Name Latest stable release Name

Total Download GitHub Watchers GitHub Stars GitHub Followers

License php php

Note : This package is to be used with Laravel version 8

Installation

Install the package via Composer:

    $ composer require regnilk/fa-laravel

The package service provider will be registered automatically.

Configuration

You need to publish the configuration file to set the icons you need

    php artisan vendor:publish --provider="Regnilk\FaLaravel\FaServiceProvider"

Then edit the array returned in app/config/fa-laravel.php this way :

    return [
        "ok"    => "fas fa-check",
        "close" => "fas fa-times"
    ];

It will provide you a dictionary of icons shortcuts.

Usage

To display an icon, just call it this way :

    <x-fa icon="ok" />

You can customize this component like any other :

    <x-fa icon="close" class="text-danger" style="font-weight: bold;" title="Click here to close" />

Contact

Please use GitHub for making comments or suggestions or to report bugs.

License

Fa-Laravel written by Regnilk and released under the MIT License.

Copyright

Copyright © 2020 Regnilk