bugo / moonshine-fontawesome-field
Font Awesome icons selection field for MoonShine
0.1
2024-05-20 12:39 UTC
Requires
- php: ^8.1|^8.2
- owenvoke/blade-fontawesome: ^2.6
Requires (Dev)
- moonshine/moonshine: ^2.10.0
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-laravel: ^2.2
- rector/rector: ^1.0
Conflicts
- moonshine/moonshine: <2.0
README
Convenient Font Awesome icons selection field for MoonShine
Installation
composer require bugo/moonshine-fontawesome-field
Usage
You can use Icon
field in your resources:
<?php declare(strict_types=1); namespace App\MoonShine\Resources; use Bugo\MoonShine\FontAwesome\Fields\Icon; use MoonShine\Resources\ModelResource; /** * @extends ModelResource<Custom> */ class CustomResource extends ModelResource { public function fields(): array { return [ Icon::make('Icon') ->searchable(), ]; } }
All use cases of Blade Font Awesome are also available for you.
Caching
When using icons in Blade templates, be sure to enable Caching.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.