PHP code example of bugo / moonshine-fontawesome-field
1. Go to this page and download the library: Download bugo/moonshine-fontawesome-field library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bugo / moonshine-fontawesome-field example snippets
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(),
];
}
}