定制 noud/laravel-seo-schema-org 二次开发

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

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

noud/laravel-seo-schema-org

Composer 安装命令:

composer require noud/laravel-seo-schema-org

包简介

Laravel SEO Schema.org

README 文档

README

Laravel SEO Schema.org package.

Requirements

  • PHP 7.2+
  • Laravel 5.6+

Installation

Install the package by running this command in your terminal/cmd:

composer require noud/laravel-seo-schema-org

Usage in models

Now you can extend your models from Schema.org

<?php

namespace App\Models;

use SEO\SchemaOrg\Models\BlogPosting as SchemaOrgBlogPosting;

class BlogPosting extends SchemaOrgBlogPosting
{}

Schema.org Types

Entity-Relationship Diagram

Schema.org Entity-Relationship Diagram

Development

Put this package directory beside your project directory.

In conmposer.json of the target project add

    "require": {
        "noud/laravel-seo-schema-org": "*"
    },
    "repositories": [
        {
            "type": "path",
            "url": "../laravel-seo-schema-org"
        }
    ]

In .env of the target project i set the database to an alternative database

DB_DATABASE=schema-org
#DB_DATABASE=seo

Development migration

I migrate just this schema like so in the target project:

php artisan migrate --realpath --path=/var/www/laravel-seo-schema-org/src/database/migrations

Development models generation

In the target project set the path and namespace in config/models.php

        'path' => app_path('Models-schema-org'),
        'namespace' => 'SEO\SchemaOrg\Models',

I generate the models from this schema like so in the target project:

php artisan code:models --schema=schema-org

Then copy everything from app/Models-schema-org to the package.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固