承接 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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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