outl1ne / nova-settings

A Laravel Nova tool for editing custom settings using native Nova fields.
MIT License
271 stars 99 forks source link

How to catch an event? #140

Closed holubar closed 1 year ago

holubar commented 1 year ago

This is more of a question than issue.

I want to achieve following: upload favicon.ico to my storage folder with some hashtag in filename for cache busting -> this part I can do.

For legacy devices I want to make a copy of of uploaded favicon and place it under name "favicon.ico" in Laravel public folder. I thought maybe setting an observer could do it, but I don't know how to catch this with this package.

Or maybe there is a better way to do it?

Edit: so just standard Osberver on "Outl1ne\NovaSettings\Models\Settings" works really well :)