定制 novius/laravel-filament-publishable 二次开发

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

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

novius/laravel-filament-publishable

最新稳定版本:1.0.1

Composer 安装命令:

composer require novius/laravel-filament-publishable

包简介

A Laravel Filament package for publishable fields

README 文档

README

Packagist Release License: AGPL v3

Introduction

This package allows you to manage Laravel Models which use Laravel Publishable in Laravel Filament.

Requirements

  • Laravel Filament >= 4
  • Laravel >= 11.0
  • PHP >= 8.2

NOTE: These instructions are for Laravel >= 10.0 and PHP >= 8.2 If you are using prior version, please see the previous version's docs.

Installation

You can install the package via composer:

composer require novius/laravel-filament-publishable

Usage

Insert Publishable fields, action and filter on your Filament Resource.

use Filament\Resources\Resource;

class Post extends Resource
{
    public static function form(Form $form): Form
    {
        return $form
            ->schema([
                // ...
                PublicationStatus::make('publication_status'),
                PublishedAt::make('published_at'),
                ExpiredAt::make('expired_at'),
                PublishedFirstAt::make('expired_at'),
                // ...
            ]);
    }

    public static function table(Table $table): Table
    {
        return $table
            ->columns([
                // ...
                PublicationColumn::make('publication_status'),
                // ...
            ])
            ->filters([
                // ...
                PublicationStatusFilter::make('publication_status'),
                // ...
            ])
            ->bulkActions([
                // ...
                PublicationBulkAction::make(),
                // ...
            ]);
    }

Lang files

If you want to customize the lang files, you can publish them with:

php artisan vendor:publish --provider="Novius\LaravelFilamentPublishable\LaravelNovaPublishableServiceProvider" --tag="lang"

Lint

Lint your code with Laravel Pint using:

composer run-script lint

Licence

This package is under GNU Affero General Public License v3 or (at your option) any later version.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: AGPL-3.0-or-later
  • 更新时间: 2026-02-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固