webfactorybulgaria/redirects
Composer 安装命令:
composer require webfactorybulgaria/redirects
包简介
README 文档
README
Installation
composer require webfactorybulgaria/redirects
Add this to config/app.php
TypiCMS\Modules\Redirects\Shells\Providers\ModuleProvider::class,
php artisan vendor:publish
php artisan migrate
Add this line to app/Http/Kernel.php in the $middleware array
\TypiCMS\Modules\Redirects\Shells\Http\Middleware\CheckRedirect::class,
Add this to the Model:
use TypiCMS\Modules\Redirects\Shells\Traits\Redirectable;
...
use Redirectable;
Add 'redirects' to the fillable array of the main model
Add
-
use TypiCMS\Modules\Redirects\Shells\Observers\RedirectObserver; -
<Model>::observe(new RedirectObserver());to the ModuleProvider
Add this to the admin form view:
{!! TranslatableBootForm::textarea(trans('validation.attributes.redirects'), 'redirects') !!}
This module is part of Admintool4, a multilingual CMS based on Laravel 5.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-22