From a5c8601e6c34202d9c5f4dc3370e5abfce732292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Fri, 22 Nov 2024 04:03:09 +0200 Subject: [PATCH] wip --- app/Providers/AppServiceProvider.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index ab804d8..aef6aa5 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -7,6 +7,7 @@ use App\Models\ScheduledJob; use Dedoc\Scramble\Scramble; use Filament\Actions\CreateAction; +use Filament\Forms\Components\SpatieMediaLibraryFileUpload; use Filament\Resources\Pages\CreateRecord; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Database\Eloquent\Model; @@ -39,6 +40,10 @@ public function register(): void Config::set('scramble.info.version', $version); Config::set('sentry.release', $version); }); + + SpatieMediaLibraryFileUpload::configureUsing(function (SpatieMediaLibraryFileUpload $fileUpload) { + $fileUpload->disk(config('filament.default_filesystem_disk')); + }); } /**