fix: storage to public
private was breaking things bad
This commit is contained in:
parent
a94a34ce3b
commit
6d1d88542e
1 changed files with 3 additions and 1 deletions
|
|
@ -37,6 +37,8 @@ class EntryForm
|
|||
->collection('featured-image')
|
||||
->image()
|
||||
->imageEditor()
|
||||
->disk('public')
|
||||
->visibility('public')
|
||||
->columnSpanFull()
|
||||
->hintAction(
|
||||
Action::make('featured_picker')
|
||||
|
|
@ -86,7 +88,7 @@ class EntryForm
|
|||
$newMedia = $record->addMediaFromUrl($fullUrl)
|
||||
->usingName($mediaItem->name ?: $mediaItem->file_name)
|
||||
->usingFileName($mediaItem->file_name)
|
||||
->toMediaCollection('featured-image');
|
||||
->toMediaCollection('featured-image', 'public');
|
||||
|
||||
// Update component state
|
||||
$component->state([$newMedia->uuid]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue