lukas-frey / filament-icon-picker

An icon picker field for Filament
MIT License
111 stars 22 forks source link

How do I setup a new set? #10

Closed mohamedary closed 1 year ago

mohamedary commented 1 year ago

Looking forward to install fontawesome set. But, I can't find anything regarding that in the documentation. Tried the following:

IconPicker::make(name: 'icon')
        ->required()
        ->sets(['heroicons', 'fontawesome-solid'])
        ->columns([
            'default' => 1,
            'lg' => 3,
            '2xl' => 5,
        ]),

However, fontawesome icons are not loaded so I guess there is a step I need to do.

lukas-frey commented 1 year ago

Looking forward to install fontawesome set. But, I can't find anything regarding that in the documentation. Tried the following:

IconPicker::make(name: 'icon')
        ->required()
        ->sets(['heroicons', 'fontawesome-solid'])
        ->columns([
            'default' => 1,
            'lg' => 3,
            '2xl' => 5,
        ]),

However, fontawesome icons are not loaded so I guess there is a step I need to do.

You need to have the respective Blade UI Icons set installed: https://github.com/owenvoke/blade-fontawesome

EDIT: and after installing the icon set, you need to clear the cache.

mohamedary commented 1 year ago

Thanks a lot :)

Shipu commented 1 year ago

Installed: https://github.com/owenvoke/blade-fontawesome and clear cache but not showing the icons