Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dragomano/moonshine-fontawesome-field

Font Awesome icons selection field for MoonShine
https://github.com/dragomano/moonshine-fontawesome-field

List: moonshine-fontawesome-field

fontawesome moonshine

Last synced: 5 days ago
JSON representation

Font Awesome icons selection field for MoonShine

Awesome Lists containing this project

README

        

# MoonShine FontAwesome Field

![PHP](https://img.shields.io/badge/PHP-^8.2-blue.svg?style=flat)
[![Coverage Status](https://coveralls.io/repos/github/dragomano/moonshine-fontawesome-field/badge.svg?branch=main)](https://coveralls.io/github/dragomano/moonshine-fontawesome-field?branch=main)

Convenient Font Awesome icons selection field for [MoonShine](https://github.com/moonshine-software/moonshine)

### Support MoonShine versions

| MoonShine | This package |
| --------- | ------------ |
| 2.0+ | 0.x |
| 3.0+ | 1.x |

## Installation

```bash
composer require bugo/moonshine-fontawesome-field
```

## Usage

You can use `Icon` field in your resources:

```php

*/
class CustomResource extends ModelResource
{
/**
* @return list
*/
protected function formFields(): iterable
{
return [
Icon::make('Icon')
->searchable(),
];
}
}
```

All use cases of [Blade Font Awesome](https://github.com/owenvoke/blade-fontawesome?tab=readme-ov-file#usage) are also available for you.

## Caching

When using icons in Blade templates, be sure to enable [Caching](https://github.com/blade-ui-kit/blade-icons?tab=readme-ov-file#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.