fix: storage to public

private was breaking things bad
This commit is contained in:
jon brookes 2026-01-03 14:52:52 +00:00
parent a94a34ce3b
commit 6d1d88542e

View file

@ -37,6 +37,8 @@ class EntryForm
->collection('featured-image') ->collection('featured-image')
->image() ->image()
->imageEditor() ->imageEditor()
->disk('public')
->visibility('public')
->columnSpanFull() ->columnSpanFull()
->hintAction( ->hintAction(
Action::make('featured_picker') Action::make('featured_picker')
@ -86,7 +88,7 @@ class EntryForm
$newMedia = $record->addMediaFromUrl($fullUrl) $newMedia = $record->addMediaFromUrl($fullUrl)
->usingName($mediaItem->name ?: $mediaItem->file_name) ->usingName($mediaItem->name ?: $mediaItem->file_name)
->usingFileName($mediaItem->file_name) ->usingFileName($mediaItem->file_name)
->toMediaCollection('featured-image'); ->toMediaCollection('featured-image', 'public');
// Update component state // Update component state
$component->state([$newMedia->uuid]); $component->state([$newMedia->uuid]);