martin-ro/filament-seo-meta-tags 问题修复 & 功能扩展

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

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

martin-ro/filament-seo-meta-tags

最新稳定版本:1.0.16

Composer 安装命令:

composer require martin-ro/filament-seo-meta-tags

包简介

SEO Meta Tags for Filament Admin Panel

README 文档

README

Model and UI for managing SEO meta tags for Filament.

Installation

You can install the package via composer:

composer require martin-ro/filament-seo-meta-tags

You can run the migrations with:

php artisan migrate

Preparing your model

class Page extends Model
{
    use HasSeoMetaTags;

    // ...
}

Components

Title

SeoTitle::make()

Configuration:

SeoTitle::make(name: 'title', minLength: 50, maxLength: 70, rows: 2, strict: false)

Description

SeoDescription::make()

Configuration:

SeoDescription::make(name: 'description', minLength: 150, maxLength: 165, rows: 4, strict: false)

Robots

SeoRobots::make()

Optional Middleware

php artisan filament-seo-meta-tags:publish-middleware

In your app/Http/Kernel.php file, add the middleware to the web group:

protected $middlewareGroups = [
    'web' => [
       // ...
       \App\Http\Middleware\AddSeoMetaTagDefaults::class,
    ],
];

Publishing the configuration

php artisan vendor:publish --tag=filament-seo-meta-tags-config

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-31