Jasmine 的 SEO 包

2.2.1 2023-02-27 14:06 UTC

This package is auto-updated.

Last update: 2024-09-27 17:16:44 UTC


README

Jasmine 的 SEO 包

安装

composer require jasminecms/seo
然后运行
php artisan migrate

在你的页面或面包屑中添加 Seoable 特性。

use Seoable;

在你的字段Manifest中添加

    public static function fieldsManifest(): FieldsManifest
    {
        return new FieldsManifest([
            'col-md-4'   => \JasmineSeo::fieldsBox() + [],
         ]);
    }

在你返回视图之前调用 JasmineSeo::build($seoableModel);

在你的 blade 模板头部调用 {!! JasmineSeo::generate() !!}