SpatieMediaLibraryFileUpload Save on Upload
Any suggestions for saving a file on upload? Easy to do with on a regular field by doing something like but not sure what magic is needed for an upload field
->afterStateUpdated(function ($state) use ($tenancy) {
$tenancy->update([
'foo' => $state,
]);
}),