statikbe/laravel-filament-flexible-blocks-asset-manager 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

statikbe/laravel-filament-flexible-blocks-asset-manager

Composer 安装命令:

composer require statikbe/laravel-filament-flexible-blocks-asset-manager

包简介

A simple document and image manager for the Filament Flexible Blocks package.

README 文档

README

Laravel Filament Flexible Blocks Asset Manager banner

Laravel Filament Flexible Blocks Asset Manager

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package provides a simple document and image manager for the Laravel Filament Flexible Content Blocks package.

The key features are:

Versions & compatibility

Filament Version Package Version Development Branch
v3 statikbe/laravel-filament-flexible-blocks-asset-manager:^3.0 v3
v4 & v5 statikbe/laravel-filament-flexible-blocks-asset-manager:^4.0 main

Upgrades

If you upgrade to v4.1.0, check the upgrade guide.

Installation

You can install the package via composer:

composer require statikbe/laravel-filament-flexible-blocks-asset-manager

You can publish and run the migrations with:

php artisan vendor:publish --tag="filament-flexible-blocks-asset-manager-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="filament-flexible-blocks-asset-manager-config"

Optionally, you can publish the translations using

php artisan vendor:publish --tag="filament-flexible-blocks-asset-manager-translations"

PDF thumbnail previews

To enable thumbnail previews for PDF assets in the table, you need to install spatie/pdf-to-image:

composer require spatie/pdf-to-image

This requires Imagick and Ghostscript to be installed on your server. See the spatie/pdf-to-image documentation for more details.

Setup with the Filament Flexible Content Blocks package

To integrate the plugin with Filament, you need to add it a panel in the filament service provider. See the code sample below:

public function panel(Panel $panel): Panel
{
    return $panel
        ->default()
        //...
        ->plugins([
            SpatieLaravelTranslatablePlugin::make()
                ->defaultLocales(['nl']),
            //...
            FilamentFlexibleBlocksAssetManagerPlugin::make()
        ]);
}

Then to use the asset manager in the call-to-actions you have to add them to the configuration of the Filament Flexible Content Blocks package:

return [
    //...
     
    'call_to_action_models' => [
        [
            'model' => \Statikbe\FilamentFlexibleBlocksAssetManager\Models\Asset::class,
            'call_to_action_type' => \Statikbe\FilamentFlexibleBlocksAssetManager\Filament\Form\Fields\Blocks\Type\AssetCallToActionType::class,
        ],
        //...
        //\App\Models\TranslatablePage::class,
    ],
        
    //...
]

Configuration

The configuration file is filament-flexible-blocks-asset-manager.php fully commented, to explain each configuration option.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固