webfactorybulgaria / redirects
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/webfactorybulgaria/redirects
Requires
- webfactorybulgaria/core: ~4.1.0
This package is not auto-updated.
Last update: 2025-10-12 02:10:13 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.