2017 © Pedro Peláez
 

library extendable-routing

Adds an extend method to the Laravel-4 router allowing you to add custom route extensions

image

amhol/extendable-routing

Adds an extend method to the Laravel-4 router allowing you to add custom route extensions

  • Tuesday, June 3, 2014
  • by AMHOL
  • Repository
  • 2 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Extendable Router

Adds an extend method to the Laravel-4 router allowing you to add custom route extensions, (*1)

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require amhol/extendable-routing., (*2)

"require": {
    "amhol/extendable-routing": "1.*"
}

Next, update Composer from the Terminal:, (*3)

composer update

Once this operation completes, the final step is to add the service provider. Open app/config/app.php, and add a new item to the providers array., (*4)

'AMHOL\ExtendableRouting\ExtendableRoutingServiceProvider'

Usage

Firstly, you need to add your route extensions, I prefer to do this by adding an app/routeextensions.php file as below:, (*5)

<?php

/*
|--------------------------------------------------------------------------
| Application Route Extensions
|--------------------------------------------------------------------------
|
| Here is where you can extend the router with your own methods.
| It's a breeze. Simply tell the Laravel Router the methods it should 
| respond to and give it the Closure to execute when that method is 
| called.
|
*/

// Route::extend('api', function($resources, $actions = ['index', 'show', 'update', 'create']) {
//     // my custom extension
//     // Route::get($resources, ...);
// });

Then adding the following to the bottom of app/start/global.php:, (*6)

require app_path().'/routeextensions.php';

You can then access your custom routing methods via the Route facade in routes.php as normal., (*7)

The Versions

03/06 2014

dev-master

9999999-dev

Adds an extend method to the Laravel-4 router allowing you to add custom route extensions

  Sources   Download

The Requires

 

The Development Requires

by Andy Holland

03/06 2014

1.0

1.0.0.0

Adds an extend method to the Laravel-4 router allowing you to add custom route extensions

  Sources   Download

The Requires

 

The Development Requires

by Andy Holland