You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having trouble accessing updated media paths for my User model after a user module update/created. I am using the spatie/laravel-medialibrary package via ebess/advanced-nova-media-library to manage media files for my model.
I have tried creating a custom observer for my User model that listens to the updated event and runs my code after all other observers have finished running.
However, my code still runs before the MediaObserver for spatie/laravel-medialibrary, so I am unable to access the updated media path.
I would appreciate any guidance on how to access the updated/created media path for my User model after a user module update.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am having trouble accessing updated media paths for my User model after a user module update/created. I am using the spatie/laravel-medialibrary package via ebess/advanced-nova-media-library to manage media files for my model.
I have tried creating a custom observer for my User model that listens to the updated event and runs my code after all other observers have finished running.
However, my code still runs before the MediaObserver for spatie/laravel-medialibrary, so I am unable to access the updated media path.
I would appreciate any guidance on how to access the updated/created media path for my User model after a user module update.
Thank you for your help.
Best regards,
Beta Was this translation helpful? Give feedback.
All reactions