v4.1.1 2016-12-22 11:01 UTC

This package is not auto-updated.

Last update: 2024-05-11 17:12:37 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.