LaravelPackages.net
Acme Inc.
Toggle sidebar
apsonex/filament-simple-file

Filement Simepl File Uploader

100
0
v1.0.9
About apsonex/filament-simple-file

apsonex/filament-simple-file is a Laravel package for filement simepl file uploader. It currently has 0 GitHub stars and 100 downloads on Packagist (latest version v1.0.9). Install it with composer require apsonex/filament-simple-file. Discover more Laravel packages by apsonex or browse all Laravel packages to compare alternatives.

Last updated

Filament Image Field

Usage


use \Apsonex\FilamentSimpleFile\Form\Components\File

File::make('column')
   ->disk('s3')
   ->directory("storage/dir/location")
   ->visibility('public')
   ->acceptedFileTypes(['image/png', 'image/jpeg', 'image/jpg'])
   ->helperText('Helper Text')
   ->maxSize(5 * 1024)
   ->label('Upload Logo');

Delete previously stored file

To delete previously stored file, use deleteOldFile(true). Make sure Form component implement getRecord() method and must return model instance.

File::make('column')
   ->disk('s3')
   ->deleteOldFile(true)

Star History Chart