承接 rectitude-open/filament-news 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

rectitude-open/filament-news

最新稳定版本:v1.19.0

Composer 安装命令:

composer require rectitude-open/filament-news

包简介

Filament news plugin with categories, tags, and revisions.

README 文档

README

Filament News Banner

Filament News

Do not use Tests PHPStan Latest Version on Packagist Total Downloads PRs Welcome

Filament News is a Filament plugin that provides a comprehensive news management interface for your application. It's designed to help you quickly set up a backend for managing news articles, complete with common features such as categories, tags, featured images, summaries, weight, SEO optimization, and version tracking. This package streamlines the process of integrating a robust news system into your Filament admin panel.

Note: This plugin relies on several excellent Laravel/Filament plugins. Before installing Filament News, you must ensure that all the following dependencies are installed and properly configured in your project. Filament Tree, Filament Select Tree, Eloquent Sluggable, Filament Spatie Tags Plugin, Filament Versionable, Filament SEO, Filament Curator

Important: The category feature in this plugin depends on the Filament Tree plugin. You must configure the order field of Filament Tree to use weight for proper functionality.

This package is also a standalone part of a CMS project: FilaPress.

Resource Page Cluster Migration Model Config View Localization

Installation

You can install the package via composer:

composer require rectitude-open/filament-news

You can publish and run the migrations with:

php artisan vendor:publish --tag="filament-news-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="filament-news-config"

Optionally, you can publish the translations using

php artisan vendor:publish --tag="filament-news-translations"

This is the contents of the published config file:

return [
    'cluster' => [
        'navigation_sort' => 0,
        'navigation_icon' => 'heroicon-o-newspaper',
    ],
    'news' => [
        'navigation_sort' => 0,
        'navigation_icon' => 'heroicon-o-newspaper',
        'datetime_format' => 'Y-m-d H:i:s',
        'navigation_badge' => false,
        'model' => \RectitudeOpen\FilamentNews\Models\News::class,
        'filament_resource' => \RectitudeOpen\FilamentNews\Filament\Resources\NewsResource::class,
    ],
    'news_category' => [
        'model' => \RectitudeOpen\FilamentNews\Models\NewsCategory::class,
        'page' => \RectitudeOpen\FilamentNews\Filament\Pages\NewsCategory::class,
        'navigation_sort' => 2,
        'navigation_icon' => 'heroicon-o-rectangle-stack',
    ],
    'tag' => [
        'model' => \RectitudeOpen\FilamentNews\Models\Tag::class,
        'filament_resource' => \RectitudeOpen\FilamentNews\Filament\Resources\NewsTagResource::class,
        'navigation_sort' => 3,
        'navigation_icon' => 'heroicon-o-tag',
    ],

    'editor_component_class' => \Filament\Forms\Components\RichEditor::class,
];

Usage

The package provides a cluster page that allows you to view News in your Filament admin panel.

To use the cluster page provided by this package, you need to register it in your Panel Provider first.

namespace App\Providers\Filament;

use RectitudeOpen\FilamentNews\FilamentNewsPlugin;

class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->plugins([
                FilamentNewsPlugin::make()
            ]);
    }
}

Testing

composer test

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.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-12