dannymcc/laravel-redirection
Composer 安装命令:
composer require dannymcc/laravel-redirection
包简介
Redirect pages.
README 文档
README
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.
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-06-06