regnilk/fa-laravel
Composer 安装命令:
composer require regnilk/fa-laravel
包简介
Laravel component for FontAwesome integration with Blade
README 文档
README
Laravel component for FontAwesome integration with Blade
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
统计信息
- 总下载量: 357
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-16