定制 bostjanob/filament-file-manager 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-18