swatty007/nova-easy-avatars
Composer 安装命令:
composer require swatty007/nova-easy-avatars
包简介
Additional Plug & Play Avatars for your Nova Panel.
README 文档
README
A small set of additional Avatars types to extend your Nova Panel. Plug & Play.
Installation
You can install the package via composer:
composer require swatty007/nova-easy-avatars
Configuration
All fields work without any additional configuration out of the box. You can however, overwrite their Name & Attribute fields to your liking as on any other Nova field. Furthermore, you can control the size of your avatars with the setSize() && setFontSize()(Initials only) method.
The Laravolt based Initials field gives you some extra controls over the look & feel of your Avatar via its configuration file. For details check out the package's documentation under: https://github.com/laravolt/avatar
This is helpful, if you want to generate Avatars with a unique color scheme, which matches your application!
Usage
You can use all available Avatar fields in the same way as Novas build in fields.
use Swatty007\NovaEasyAvatars\Fields\Initials; public function fields(Request $request) { return [ ... Initials::make('Avatar', 'name') ->setSize(350), ... ]
The package currently supports the following Avatar Types:
- Identicon via https://github.com/yzalis/Identicon
- Initials via https://github.com/laravolt/avatar
Changelog
Please see CHANGELOG for more information what has changed recently.
TODO
- If someone has an idea how to write tests for Nova fields, pull Requests are welcome 🧐
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email info@martin-niehoff.de instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 562
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-03-01