webfactorybulgaria / redirects
Requires
- webfactorybulgaria/core: ~4.1.0
This package is not auto-updated.
Last update: 2024-11-09 20:28:12 UTC
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.