Skip to content

Commit

Permalink
fix image gala
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Jul 3, 2024
1 parent a67406e commit 91f5969
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/Filament/Resources/GalaProjectResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use App\Models\GalaProject;
use Filament\Forms\Components\DatePicker;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\SpatieMediaLibraryFileUpload;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
Expand Down Expand Up @@ -126,6 +127,15 @@ function (Builder $query, GalaProject $record) {
->inlineLabel()
->required(),

SpatieMediaLibraryFileUpload::make('regionalProjectFiles')
->label(__('project.labels.gallery'))
->collection('regionalProjectFiles')
->inlineLabel()
->disk(config('filesystems.default_public'))
->image()
->multiple()
->maxFiles(20),

Toggle::make('youth')
->label(__('edition.labels.youth_project'))
->inlineLabel()
Expand Down

0 comments on commit 91f5969

Please sign in to comment.