Download the PHP package brayniverse/laravel-redirect-helper without Composer
On this page you can find all versions of the php package brayniverse/laravel-redirect-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brayniverse/laravel-redirect-helper
More information about brayniverse/laravel-redirect-helper
Files in brayniverse/laravel-redirect-helper
Package laravel-redirect-helper
Short Description Syntactic sugar for those occasions when you want to redirect from an old route to a new route.
License MIT
Homepage https://github.com/brayniverse/laravel-redirect-helper
Informations about the package laravel-redirect-helper
Laravel redirect helper
Syntactic sugar for those occasions when you want to redirect from an old route to a new route.
This package adds a Route::redirect()
helper method so you don't have to create a closure for each redirect.
Installation
Begin by installing the package through Composer.
Then add the following to your providers array in config/app.php
.
Usage
Normally you'd have to create a closure to redirect to the new route.
Now you can do the same in one line.
Setting status code
Optionally, you can pass a third argument to Route::redirect()
which will set the status code when redirecting. If you do not specify a status code, the package will use 301
as the status code.
Credits
- Christopher L Bray
- All Contributors
All versions of laravel-redirect-helper with dependencies
illuminate/support Version 5.1.* || 5.2.* || 5.3.* || 5.4.*
illuminate/http Version 5.1.* || 5.2.* || 5.3.* || 5.4.*