bostjanob/filament-file-manager
Filament File Manager
This package provides a Filament page as a simple file manager.
Installation
You can install the package via composer:
composer require bostjanob/filament-file-manager
Usage
Extend the page class and set $disk property to the disk you want to manage.
<?php
namespace App\Filament\Pages;
use BostjanOb\FilamentFileManager\Pages\FileManager;
class PublicFileManager extends FileManager
{
protected static ?string $navigationLabel = 'Public files';
protected string $disk = 'public';
}
If you want to change default folder, override the $path property.
Customizing actions
You can customize the actions by overriding the table method.
Hiding button:
public function table(Table $table): Table
{
$table = parent::table($table);
// actions names: open, download, delete
$table->getAction('delete')->hidden(true);
return $table;
}
Adding addition action:
public function table(Table $table): Table
{
$table = parent::table($table);
$table->pushActions([
Action::make('john')
->label('John'),
]);
return $table;
}
License
The MIT License (MIT). Please see License File for more information.
Related Packages
mmes-design/filament-file-manager
A beautiful file manager plugin for Filament. Browse, upload, rename, move and d...
3,474
16
mwguerra/filemanager
A full-featured file manager package for Laravel and Filament v5 with dual opera...
26,235
80
georgemosesgroup/filament-media-library
A powerful media library package for Filament v3/v4/v5+ with MediaPicker form co...
85
1
maystro/filament-popup-modal
A comprehensive modal dialog system for FilamentPHP with progress bars, callback...
6
1