定制 empyrean/breadcrumbs 二次开发

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

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

empyrean/breadcrumbs

Composer 安装命令:

composer require empyrean/breadcrumbs

包简介

Creates a breadcrumbs path to your current location.

README 文档

README

This is a Laravel package that will build up a nice presentation of your current url, more known as "Breadcrumbs"

http://domain.com/admin/users/create-new-user will turn into this:

Alt text

Installation

Install Breadcrumbs by running:

composer require empyrean/breadcrumbs

After that you will have to publish css files and BreadcrumbsServiceProvider by running:

php artisan vendor:publish (this will also add a vendor/breadcrumbs/breadcrumbs.css file to you public folder)

After this just include the link to the css file on any on page you want breadcrumbs to show up if you plan on using html provided by this package.

Usage

You will be able to get your breadcrumbs in 3 different ways

Breadcrumb::buildHtml() - this method will return full html 

Breadcrumb::buildParsedPath()->get() - this will split current url by "/" and return an array in case you want to stylelize breadcrumbs on your own. 

You can change the format of your parsedPath by calling format() method and then provding a format type like so:

Breadcrumb::buildParsedPath()->format(new Collection)->get()

You can also request links to all pages by calling withLinks() method like so:

Breadcrumb::buildParsedPath()->format(new Collection)->withLinks()->get()

Licence

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固