rawilk / profile-filament-plugin

Profile & MFA starter kit for filament.
https://randallwilk.dev/docs/profile-filament-plugin
MIT License
27 stars 7 forks source link

`pf-passkey` icon not found #21

Closed austincarpenter closed 1 month ago

austincarpenter commented 8 months ago

profile-filament-plugin Version

v0.3.2

Laravel Version

v10.46.0

Bug description

Svg by name "pf-passkey" from set "default" not found.

The custom Blade icons set that the package registers does not exist when it comes to resolving the icon. For now my workaround is to register the default set per the blade icons config and place a duplicate of pf-passkey.svg in my own /resources/svg folder.

Steps to reproduce

Install package as per instructions.

Relevant log output

No response

rawilk commented 8 months ago

I haven't run into this issue myself, but I'll see if I can replicate this when I get a chance to. The icons should be getting registered from the package's service provider. Currently it's done like this:

$sets = $this->app['config']->get('blade-icons.sets');
$sets['profile-filament'] = [
    'path' => 'vendor/rawilk/profile-filament-plugin/resources/svg',
    'prefix' => 'pf',
];

$this->app['config']->set('blade-icons.sets', $sets);

If there's a better way of registering them, I'd be open to changing that.

rawilk commented 1 month ago

This issue should be resolved with v0.5.0, which I should be releasing soon. I changed how the package's icons are registered, which should prevent this error.