定制 fanswoo/attachment 二次开发

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

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

fanswoo/attachment

Composer 安装命令:

composer require fanswoo/attachment

包简介

fanswoo attachment

README 文档

README

Fanswoo/Attachment for Filament

This package provides files and pictures upload manager. it can also support Filament forms field.

Requirements

  • Laravel v11
  • Filament v3

Installation

You can install the package via composer:

composer require fanswoo/attachment

After that run the vendor:publish command:

php artisan vendor:publish --provider=FF\\Attachment\\Attachment\\AttachmentProvider --tag=migrations

This will publish the migrations from fanswoo/attachment

And run migrates

php artisan migrate

Usage

Files usage

In you Model add FF\Attachment\Relations\CanRelateFile trait

use Illuminate\Database\Eloquent\Model;
use FF\Attachment\Relations\CanRelateFile;

class Record extends Model
{
    use CanRelateFile;
}

Pics usage

In you Model add FF\Attachment\Relations\CanRelatePic trait

use Illuminate\Database\Eloquent\Model;
use FF\Attachment\Relations\CanRelatePic;

class Record extends Model
{
    use CanRelatePic;
}

统计信息

  • 总下载量: 627
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-04-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固