SpatieMediaLibraryFileUpload Save on Upload

Any suggestions for saving a file on upload? Easy to do with on a regular field by doing something like
->afterStateUpdated(function ($state) use ($tenancy) {
$tenancy->update([
'foo' => $state,
]);
}),
->afterStateUpdated(function ($state) use ($tenancy) {
$tenancy->update([
'foo' => $state,
]);
}),
but not sure what magic is needed for an upload field
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server