Skip to content

Commit

Permalink
fix file uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Nov 26, 2024
1 parent ffb3016 commit 5451a37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace App\Providers;

use App\Services\Filter;
use Filament\Forms\Components\FileUpload;
use Filament\Notifications\Livewire\DatabaseNotifications;
use Filament\Support\Assets\Css;
use Filament\Support\Assets\Js;
Expand Down Expand Up @@ -43,6 +44,10 @@ public function register(): void

DatabaseNotifications::trigger('notifications.database-notifications-trigger');

FileUpload::configureUsing(function (FileUpload $fileUpload){
$fileUpload->visibility('public');
});

FilamentAsset::register([
Js::make('custom-script', resource_path('js/admin.js')),
Js::make('leaflet-js', 'https://unpkg.com/leaflet@1.9.4/dist/leaflet.js'),
Expand Down

0 comments on commit 5451a37

Please sign in to comment.