dannymcc/laravel-redirection
Laravel Redirection
A package for handling redirects via a database.
Installation
You can install the package via composer:
composer require dannymcc/laravel-redirection
Next add the service provider to config/app.php:
// config/app.php
'providers' => [
...
Dannymcc\Redirection\RedirectionServiceProvider::class,
];
Optional, publish the config file:
php artisan vendor:publish --provider="Dannymcc\LaravelRedirection\RedirectionServiceProvider"
Usage
Redirect::create([
'from_url' => '/from-here',
'to_url' => '/to-here,
'status_code' => 302
]);
License
The MIT License (MIT). Please see License File for more information.
Related Packages
owenmelbz/domain-enforcement
Laravel 5+ middleware to enforce a single domain on your application. e.g non-ww...
4,905
23
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 1.0.0 | ^7.0 | MIT |