Skip to content

Commit

Permalink
Merge branch 'main' of github.com:vormkracht10/filament-media-picker
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Dec 7, 2024
2 parents 570bd26 + 65eb8c7 commit 7308c15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Components/MediaPicker.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ public static function make(string $name = 'media'): static
->multiple()
->columnSpanFull();
}
}
}
6 changes: 3 additions & 3 deletions src/Resources/MediaResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static function form(Form $form): Form
->label(__('Model Type'))
->options(function () {
return collect(config('media-picker.file_upload.models'))
->mapWithKeys(fn($model) => [$model => class_basename($model)])
->mapWithKeys(fn ($model) => [$model => class_basename($model)])
->toArray();
})
->visible(count(config('media-picker.file_upload.models') ?? []) > 0)
Expand All @@ -117,7 +117,7 @@ public static function form(Form $form): Form
})
->visible(count(config('media-picker.file_upload.models') ?? []) > 0)
->columnSpan(1)
->disabled(fn(Get $get) => ! $get('model_type')),
->disabled(fn (Get $get) => ! $get('model_type')),
]),
]);
}
Expand Down Expand Up @@ -167,4 +167,4 @@ public static function getPages(): array
'edit' => MediaResource\EditMedia::route('/{record}/edit'),
];
}
}
}

0 comments on commit 7308c15

Please sign in to comment.