awcodes/filament-addons 问题修复 & 功能扩展

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

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

awcodes/filament-addons

Composer 安装命令:

composer require awcodes/filament-addons

包简介

A set of components / fields to extend Filament Admin.

README 文档

README

A set of components, fields and layouts to extend Filament Admin.

Installation

composer require awcodes/filament-addons

(Optional) Publish config file

php artisan vendor:publish --tag=filament-addons-config

Themeing

If you are using a custom theme for Filament you will need to add this plugin's views to your Tailwind CSS config. Once this is done you may disable the plugin's stylesheet in the config file by changing 'load_styles' to false.

content: [
    ...
    "./vendor/awcodes/filament-addons/resources/views/**/*.blade.php",
],

Admin

Fixed Sidebar Layout

Just return it directly from your form function in your model resource.

use FilamentAddons\Admin\FixedSidebar;

public static function form(Form $form): Form
{
    return FixedSidebar::make()
        ->schema([
            // Main section form components
        ], [
            // Sidebar form components
        ]);
}

Forms

Date Input

date input

use FilamentAddons\Forms\Fields\DateInput;

DateInput::make(string $fieldname)
    ->label('Publish Date')
    ->withoutTime() //optional

Password Generator

password generator

All methods from TextInput are available.

use FilamentAddons\Forms\Fields\PasswordGenerator;

PasswordGenerator::make(string $fieldname)
    ->passwordLength(int $length = 12)
    ->hasNumbers(bool $hasNumbers = true)
    ->hasSymbols(bool $hasSymbols = true)

Title With Slug

title with slug title with slug open

Creates a TextInput with the ability to modify the slug after creation, but preserves the slug when editing to help with SEO.

use FilamentAddons\Forms\Components\TitleWithSlug;

TitleWithSlug::make(
    string $titleFieldName = 'title',
    string $slugFieldName = 'slug',
    string|Closure $basePathForResource = '/'
)->columnSpan('full')

Timestamps

Outputs Created At and Updated At information blocks.

use FilamentAddons\Forms\Components\Timestamps;

Timestamps::make()

Separator

Just outputs a sensible hr to help separate components.

use FilamentAddons\Forms\Components\Separator;

Separator::make()

Heading

use FilamentAddons\Forms\Components\Heading;

Heading::make('whatevs')->level('h3')->content('This is a test')

Video Embed

video-embed

Allows embeded code with preview. This field does not sanitize your values. You are responsible for purifying any raw html input or output.

Supports most of the Textarea field's options.

use FilamentAddons\Forms\Fields\VideoEmbed;

VideoEmbed::make(string $fieldname)
    ->label('label')
    ->rows()

oEmbed

video-embed

Allows oembedding a video with preview.

Onlys supports YouTube and Vimeo at the moment.

use FilamentAddons\Forms\Components\OEmbed;

OEmbed::make(string $fieldname)

Tables

Title With Status Indicator

title with status

use FilamentAddons\Tables\Columns\TitleWithStatus;

TitleWithStatus::make(string $fieldname = 'title')
    ->statusField(string $fieldname = 'status') // optional
    ->statuses(array | Arrayable (Enum) Status::class)
    ->colors(array | Arrayable (Enum) Status::colors())
    ->hiddenOn(string | null Status::Published->name) //optional

awcodes/filament-addons 适用场景与选型建议

awcodes/filament-addons 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13.13k 次下载、GitHub Stars 达 30, 最近一次更新时间为 2022 年 06 月 15 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「framework」 「laravel」 「filament」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 awcodes/filament-addons 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 awcodes/filament-addons 我们能提供哪些服务?
定制开发 / 二次开发

基于 awcodes/filament-addons 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 30
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-15