lrony94/filament-filemanager

File Manager for Filament
20 1
Install
composer require lrony94/filament-filemanager
Latest Version:v1.6
PHP:^8.1
Maintainer: lrony94

Filament Filemanager

Filament Admin/Forms.

Installation

1-Install the package via composer

composer require lrony94/filament-filemanager

2-Publish assets

php artisan vendor:publish --provider="Lrony94\FilamentFileManager\Providers\FileManagerServiceProvider"

Usage

The editor extends the default Field class so most other methods available on that class can be used when adding it to a form.

use Lrony94\FilamentFileManager\Forms\Components\FileManagerPicker;

FileManagerPicker::make('avatar')
	->columnSpanFull()
	->required()
	->label('Avatar'),

Config

The plugin will work without publishing the config, but should you need to change any of the default settings you can publish the config file with the following Artisan command:

php artisan vendor:publish --tag="filament-filemanager-config"

Profiles / Tools

The package comes with 4 profiles (or toolbars) out of the box. You can also use a pipe | to separate tools into groups. The default profile is the full set of tools.

"disk" => "local",
"allowed_mimes" => [
	'jpg', 'jpeg', 'png', 'gif', 'webp', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'zip', 'rar', 'mp4', 'mp3'
],

Versioning

This project follow the Semantic Versioning guidelines.

License

Licensed under the MIT license, see LICENSE.md for details.