dmyers/laravel-moved

A simple URL rewriter package for Laravel 4.

Installs: 196

Dependents: 0

Stars: 2

Watchers: 1

Language: PHP

v1.0.0 2014-05-10 04:03 UTC

README

Rewrite is a URL rewriter for Laravel 4 applications.

Installation via Composer

Add this to you composer.json file, in the require object:

"dmyers/laravel-rewrite": "1.*"

After that, run composer install to install Storage.

Add the service provider to app/config/app.php, within the providers array.

'providers' => array(
    // ...
    'Dmyers\Rewrite\RewriteServiceProvider',
)

Configuration

Publish the default config file to your application so you can make modifications.

$ php artisan config:publish dmyers/laravel-rewrite

Usage

Add URLs to the config that should be redirected to your new routes that have moved.