tobya/devroute 问题修复 & 功能扩展

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

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

tobya/devroute

最新稳定版本:V1.1

Composer 安装命令:

composer require --dev tobya/devroute

包简介

Create a dev route file that is hidden in production

README 文档

README

A Laravel package.

Adds a /dev routes routing file devroutes.php where you can store routes that are available for local testing, but unavailable in production.

All the routes will be available if

APP_ENV=local

but unavailable if your

APP_ENV=production

This is very useful when you have testing routes that you definitely dont want available when running in production.

Installation

 composer require tobya/devroute

Once installed will create a file routes/devroutes.php

Place any dev routes in this file, they are all prefixed with '/dev'. 'dev' routes have the standard web middlewares.

Route::get('/testuser/{user}', function($user){
  echo $user->name;
});

if you visit example.com/dev/testuser/4 you will get the information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-16