aman5537jains/seo-manager 问题修复 & 功能扩展

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

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

aman5537jains/seo-manager

Composer 安装命令:

composer require aman5537jains/seo-manager

包简介

to manage the seo tags

README 文档

README

Installation

1 - Dependency

The first step is using composer to install the package and automatically update your composer.json file, you can do this by running:

composer require aman5537jains/seo-manager

2 - Provider

You need to update your application configuration in order to register the package so it can be loaded by Laravel, just update your config/app.php file adding the following code at the end of your 'providers' section:

config/app.php

// file START ommited
    'providers' => [
        // other providers ommited
        Aman\SeoManager\SeoManagerServiceProvider::class,
    ],
// file END ommited

3 - Configuration

Publish config

In your terminal type

php artisan vendor:publish --provider="Aman\SeoManager\SeoManagerServiceProvider"
php artisam migrate

4 - Add Models, Excpet Paths amd other config in config\seoconfig.php

<?php 

return
    [
    "models"=>[
        "User"=>\App\User::class,
        "Country"=>\App\Model\Country::class 
    ]   ,
    "except_routes"=>[
        "admin",
        "api",
        'filemanager',
        'file-manager',
        'seo-manager',
        "_debugbar",
        "docs"
    ],
    "subdomain"=>[
        "www",
        // "*"=>["route"=>"{prefix_url}.jiunge.com",]
    ] 
                        
];

4 - usage

open http://localhost/project_name/seo-manager

Screenshot 2023-01-18 at 6 47 08 PM

Add New Url

Screenshot 2023-01-18 at 6 47 34 PM

You can configure static as well dyanamic url and can map the model column to params as shown in screenshot

generated seo tags

Screenshot 2023-01-18 at 6 52 40 PM

5 - Configure in view page

just add @seomanagertags in your main layout where all meta tags are written Example: Screenshot 2023-01-18 at 6 55 02 PM

<!doctype html>
<html lang="{{ app()->getLocale() }}">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        @seomanagertags
                        
 </head>
 <body>
  Content
 </body>
</html>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2020-09-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固