承接 lamalama/laravel-breadcrumbs 相关项目开发

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

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

lamalama/laravel-breadcrumbs

最新稳定版本:0.0.6

Composer 安装命令:

composer require lamalama/laravel-breadcrumbs

包简介

Create SEO proof breadcrumbs

README 文档

README

Latest Version on Packagist Software License StyleCI Total Downloads

⚠️ This package is in a preliminary development phase and not stable: Do not use in production!

Create SEO proof breadcrumbs.

Install

Via Composer

$ composer require lamalama/laravel-breadcrumbs

You can optionally publish the config file with:

php artisan vendor:publish --provider="LamaLama\Breadcrumbs\BreadcrumbsServiceProvider" --tag="config"

Use

You can use the Breadcrumbs::trail() method to set the trail for the breadcrumbs of the specific page.

Breadcrumbs::trail([
    'Work' => '/work',
    'Commerce' => '/work/commerce',
    'Sneaker District' => '/work/commerce/sneaker-district'
]);

You can use the Breadcrumbs::generate() method to render the html in your Blade templates.

{!! Breadcrumbs::generate() !!}

You can check if breadcrumbs exists in order to render a specific partial on your page.

@if(Breadcrumbs::exists())
    <section>
        {!! Breadcrumbs::generate() !!}
    </section>
@endif

Based on props given in the Controller the package generates SEO proof html containing microdata to support rich results.

<ol itemscope itemtype="https://schema.org/BreadcrumbList">
  <li itemprop="itemListElement" itemscope
      itemtype="https://schema.org/ListItem">
    <a itemprop="item" href="https://lamalama.nl/work">
        <span itemprop="name">Work</span></a>
    <meta itemprop="position" content="1" />
  </li>
  <li></li>
  <li itemprop="itemListElement" itemscope
      itemtype="https://schema.org/ListItem">
    <a itemscope itemtype="https://schema.org/WebPage"
       itemprop="item" itemid="https://lamalama.nl/work/commerce"
       href="https://lamalama.nl/work/commerce">
      <span itemprop="name">Commerce</span></a>
    <meta itemprop="position" content="2" />
  </li>
  <li></li>
  <li itemprop="itemListElement" itemscope
      itemtype="https://schema.org/ListItem">
    <span itemprop="name">Sneaker District</span>
    <meta itemprop="position" content="3" />
  </li>
</ol>

Change log

Please see CHANGELOG for more information on what has changed recently.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-06-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固