定制 avnir/easyrouting 二次开发

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

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

avnir/easyrouting

最新稳定版本:2.0.1

Composer 安装命令:

composer require avnir/easyrouting

包简介

Make route handling in Laravel easier

README 文档

README

Major Versions:

  • 2.x (YOU ARE HERE) - For laravel/framework:~5.* and avnir/easyrouting:~2
  • 1.x (1.0 branch) - For laravel/framework:4.* and avnir/easyrouting:~1

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require avnir/EasyRouting.

{
    "require": {
        "avnir/EasyRouting": "~2"
    }
}

Next, update Composer from the Terminal:

php composer.phar update

To use the EasyRouting Provider, you must register the provider when bootstrapping your Laravel application.

Find the providers key in your config/app.php and register the EasyRouting Provider.

    'providers' => array(
        // ...
        'Avnir\Easyrouting\EasyroutingServiceProvider::class',
    )

Find the aliases key in your config/app.php and add the AWS facade alias.

    'aliases' => array(
        // ...
        'Easyrouting' => Avnir\Easyrouting\Easyrouting::class,
    )

Usage

On the routes.php file you need to call

\EasyRouting::run();

this will setup REST routes for all the public methods of the Controllers.

If you ever want to exclude a controller from having a route, just add

var $exclude = true;

into the Controller

统计信息

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

GitHub 信息

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

其他信息

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