| Package Data | |
|---|---|
| Maintainer Username: | litvin |
| Maintainer Contact: | litvin.xx@gmail.com (Sergey Litvin) |
| Package Create Date: | 2016-12-01 |
| Package Last Update: | 2018-04-11 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-19 15:10:53 |
| Package Statistics | |
|---|---|
| Total Downloads: | 37 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 2 |
| Total Open Issues: | 0 |
Package based on decorating exceptions for HttpNotFound. It will redirect to url if it checked in table "redirect_map".
Redirectmap requires Laravel 5.0.
Install this package through Composer:
$ composer require litvin/redirectmap
OR manually edit your project's composer.json file to require litvin/redirectmap.
"require": {
"litvin/redirectmap": "0.*"
}
$ composer update
Open config/app.php and add a new item to the providers array.
'providers' => [
...
Litvin\Redirectmap\ServiceProvider::class,
]
Publish components. It will be add config\builder\tb-definitions\redirect_map.php and migrations.
$ php artisan vendor:publish --provider="Litvin\Redirectmap\ServiceProvider" --tag="redirect_map"
Apply migrations
$ php artisan migrate
After that, you need to configurate \config\builder\admin.php redirects in admin panel by adding:
'menu' => array(
...
array(
'title' => 'Переадресация',
'link' => '/redirect_map',
'check' => function() {return true;}
)
...
)
Verify the deployment by navigating to admin panel and adding redirects.