bostjanob/filament-file-manager
最新稳定版本:v0.1
Composer 安装命令:
composer require bostjanob/filament-file-manager
包简介
Filament File Manager
关键字:
README 文档
README
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.
统计信息
- 总下载量: 3.45k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-18