Skip to content

Commit

Permalink
set disk explicitly on file upload component
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Dec 13, 2023
1 parent 41ddf46 commit 51ae6bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Filament/Resources/Articles/ArticleResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public static function form(Form $form): Form
SpatieMediaLibraryFileUpload::make('cover')
->label(__('article.cover_image'))
->collection('preview')
->disk(config('filesystems.default_public'))
->required()
->image()
->maxFiles(1),
Expand All @@ -118,8 +119,9 @@ public static function form(Form $form): Form
Card::make()
->schema([
SpatieMediaLibraryFileUpload::make('gallery')
->collection('gallery')
->label(__('article.gallery'))
->collection('gallery')
->disk(config('filesystems.default_public'))
->image()
->enableReordering()
->multiple()
Expand Down

0 comments on commit 51ae6bb

Please sign in to comment.