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

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

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

snetty/laravel-simple-breadcrumbs

Composer 安装命令:

composer require snetty/laravel-simple-breadcrumbs

包简介

A simple Laravel-style way to create breadcrumbs in Laravel 5+.

关键字:

README 文档

README

An uber simple, "collection" style way to create breadcrumbs in Laravel 5.1.

Installation

  1. composer require snetty/laravel-simple-breadcrumbs
  2. php artisan vendor:publish
  3. Add 'Snetty\LaravelSimpleBreadcrumbs\ServiceProvider' to your service providers in /config/app.php
  4. Type hint the class in your controller public function index(Request $request, Breadcrumbs $breadcrumbs)
  5. Pass the object to your view return view('sites.index', compact('sites', 'breadcrumbs'));
  6. Render the object {!! $breadcrumbs->render() !!}

Usage

Breadcrumbs are added to your controllers like this: $breadcrumbs->add('/the/url', 'The Link Name');, or you can add multiple at once like this: $breadcrumbs->add(['/your-url' => 'Your Title', '/another/url' => 'Another Title']);.

It is suggested that you add your index breadcrumb in the controller.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固