hadefication/trail 问题修复 & 功能扩展

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

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

hadefication/trail

Composer 安装命令:

composer require hadefication/trail

包简介

Your package description here

README 文档

README

This package will expose a @trail blade directive that you can include into your master blade or layout file. This blade directive exposes a Trail JavaScript object that contains config and the collection of named routes that your application has. The directive also exposes a helper method named route for convenience, if you know what I mean.

Usage

  1. Add this package to your Laravel application by running composer require hadefication/trail
  2. Include @trail to your master blade or your main layout file.
  3. Start using route('route.name') in your JavaScript to access route URLs.
  4. That's all about it! Noice eh!?

Configs

The package comes with a nifty config file where you can customize how the package will behave.

  • excludeNamedRoutesToDirective: as the config suggests, this config, if set to true, it will exclude the routes collection dump in the Trail object.
  • excludeRouteHelperMethodToDirective: yep, if set to true, it will exclude the route helper method in the JavaScript export done in @trail directive.
  • excludeRoutes: This config accepts an array of route names or route URI path that you wish to be excluded in the route collection dump added in Trail.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固