vis/redirectmap
最新稳定版本:1.0.6
Composer 安装命令:
composer require vis/redirectmap
包简介
Redirect map for Laravel.
README 文档
README
Package based on decorating exceptions for HttpNotFound. It will redirect to url if it checked in table "redirect_map".
Installation
Redirectmap requires Laravel 5.0.
Install this package through Composer:
$ composer require vis/redirectmap
OR manually edit your project's composer.json file to require litvin/redirectmap.
"require": { "vis/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.
统计信息
- 总下载量: 1.38k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-19