New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

novius/laravel-filament-news

A Laravel Filament package for news and blog posts management
720 6
Install
composer require novius/laravel-filament-news
Latest Version:1.1.0
PHP:>=8.2
Laravel:12 · 13
Older releases:11
License:AGPL-3.0-or-later
Last Updated:Nov 3, 2026
Links: GitHub  ·  Packagist
Maintainer: novius

Laravel Filament News

Novius CI Packagist Release License: AGPL v3

Introduction

This Laravel Filament package allows you to manage Post news in your Laravel Filament admin panel.
You will be able to create posts, categories and tags.
You can attach multiple categories and tags to a post. Categories can be viewed as a listing page.

Requirements

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

Installation

You can install the package via composer:

composer require novius/laravel-filament-news

Run migrations with:

php artisan migrate

In your AdminFilamentPanelProvider add the PageManagerPlugin :

use Novius\LaravelFilamentNews\Filament\NewsPlugin;

class AdminFilamentPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            // ...
            ->plugins([
                NewsPlugin::make(),
            ])
            // ...
            ;
    }
}

Configuration

You can optionally publish the config file with:

php artisan vendor:publish --provider="Novius\LaravelFilamentNews\LaravelFilamentNewsServiceProvider" --tag="config"

This will allow you to:

  • define the name of the routes and their parameter
  • override resource or model classes
  • define the navigation group of the resources (none by default)
  • define locales used
// config/laravel-filament-news.php

return [
    /*
     * Resources used to manage your posts. 
     */
    'resources' => [
        'post' => \Novius\LaravelFilamentNews\Filament\Resources\Posts\PostResource::class,
        'category' => \Novius\LaravelFilamentNews\Filament\Resources\Categories\CategoryResource::class,
        'tag' => \Novius\LaravelFilamentNews\Filament\Resources\Tags\TagResource::class,
    ],

    /*
     * Models used to manage your posts.
     */
    'models' => [
        'post' => \Novius\LaravelFilamentNews\Models\NewsPost::class,
        'category' => \Novius\LaravelFilamentNews\Models\NewsCategory::class,
        'tag' => \Novius\LaravelFilamentNews\Models\NewsTag::class,
    ],

    /*
     * Navigation group in which the news resources are displayed. By default, no group.
     * Can be a string (a translation key or a label) or an enum.
     */
    'navigation_group' => null,

    // If you want to restrict the list of possible locals. By default, uses all the locals installed
    'locales' => [
        // 'en',
    ],

    /*
     * The route name used to display news posts and categories.
     */
    'front_routes_name' => [
        'posts' => null,
        'post' => null,
        'categories' => null,
        'category' => null,
        'tag' => null,
    ],

    /*
     * The route name used to display news posts and categories.
     */
    'front_routes_parameters' => [
        'post' => null,
        'category' => null,
        'tag' => null,
    ],
];

Front Stuff

If you want a pre-generated front controller and routes, you can run following command :

php artisan news-manager:publish-front {--without-categories} {--without-tags} 

This command appends routes to routes/web.php and creates a new App\Http\Controllers\NewsController.

You can then customize your routes and your controller.

In views called by the controller use the documentation of laravel-meta to implement meta tags

Assets

Next we need to publish the Laravel Nova Translatable package's assets. We do this by running the following command:

php artisan vendor:publish --provider="Novius\LaravelNovaTranslatable\LaravelNovaTranslatableServiceProvider" --tag="public"

Migrations and lang files

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

php artisan vendor:publish --provider="Novius\LaravelFilamentNews\LaravelFilamentNewsServiceProvider" --tag="migrations"
php artisan vendor:publish --provider="Novius\LaravelFilamentNews\LaravelFilamentNewsServiceProvider" --tag="lang"

Lint

Lint your code with Laravel Pint using:

composer lint

Static analysis

Analyse your code with PHPStan using:

composer analyse

Licence

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

Related Packages

novius/laravel-nova-news

A Laravel Nova package for news and blog posts management

4,274 2
webbingbrasil/filament-copyactions

A easy-to-use copy actions for Filament Admin.

949,462 93
webbingbrasil/filament-maps

Map components for Filament.

63,459 78
bostjanob/filament-file-manager

Filament File Manager

5,914 4
dejodev/page-blocks

Simple page blocks blocks package for Filament

2,233 0

Version History

Version Released PHP Laravel License
1.1.0 >=8.2 AGPL-3.0-or-later
1.0.2 >=8.2 AGPL-3.0-or-later
1.0.1 >=8.2 AGPL-3.0-or-later
1.0.0 >=8.2 ^11.0 | ^12.0 AGPL-3.0-or-later