litvin/redirectmap

Redirect map for Laravel.
37 1
Install
composer require litvin/redirectmap
Latest Version:0.0.22
License:MIT
Last Updated:Apr 11, 2018
Links: GitHub  ·  Packagist
Maintainer: litvin

Redirect map for Laravel

Package based on decorating exceptions for HttpNotFound. It will redirect to url if it checked in table "redirect_map".

Installation

Redirectmap requires Laravel 5.0.

Install this package through Composer:

$ composer require litvin/redirectmap

OR manually edit your project's composer.json file to require litvin/redirectmap.

"require": {
    "litvin/redirectmap": "0.*"
}
$ composer update

Open config/app.php and add a new item to the providers array.

    'providers' => [
        ...
        Litvin\Redirectmap\ServiceProvider::class,
    ]

Publish components. It will be add config\builder\tb-definitions\redirect_map.php and migrations.

$ php artisan vendor:publish --provider="Litvin\Redirectmap\ServiceProvider" --tag="redirect_map"

Apply migrations

$ php artisan migrate

After that, you need to configurate \config\builder\admin.php redirects in admin panel by adding:

'menu' => array(
    ...
   array(
        'title' => 'Переадресация',
        'link'  => '/redirect_map',
        'check' => function() {return true;}
        )
    ...
)

Verify the deployment by navigating to admin panel and adding redirects.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

634,760,849 9,707
laravel/framework

The Laravel Framework.

584,532,650 34,931
laravel/tinker

Powerful REPL for the Laravel framework.

493,838,477 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

408,553,772 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

391,429,217 4,660