承接 lodeb/laravel-seo 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

lodeb/laravel-seo

最新稳定版本:1.0.1

Composer 安装命令:

composer require lodeb/laravel-seo

包简介

SEO package for Laravel

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Installation

You can install the package via composer:

composer require lodeb/laravel-seo

You can publish the config file with:

php artisan vendor:publish --tag="seo-config"

This is the contents of the published config file:

return [
    'default_title' => 'My Awesome Website',
    'default_description' => 'This is the best website ever built with Laravel SEO package.',
    'default_keywords' => ['laravel', 'seo', 'package', 'awesome'],
    'default_author' => 'Your Name',
    'default_robots' => 'index, follow',

    'set_canonical_url' => true,
    'set_og_tags' => true,
    'set_twitter_cards' => true,
];

Usage

There is a singelton SEO Class. Set the SEO tags you want to generate.

\Lodeb\SEO\Facades\SEO::setTitle($this->meta_title);
\Lodeb\SEO\Facades\SEO::setDescription($this->meta_description);
\Lodeb\SEO\Facades\SEO::setKeywords(explode(',', $this->meta_keywords));
\Lodeb\SEO\Facades\SEO::setAuthor($this->meta_author);
\Lodeb\SEO\Facades\SEO::setRobots($this->meta_robots);

// App.blade

{!! \Lodeb\SEO\Facades\SEO::generate() !!}

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04