Skip to content

antonioribeiro/twill-capsule-redirections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redirections

Twill Capsule

Description

This Capsule allows you to allow your users to setup their own redirections.

Screenshot 1

Screenshot 2

Installing

Clone the repository inside your app/Twill/Capsules folder.

cd app/Twill/Capsules
git clone https://github.com/area17/twill-capsule-redirections.git
mv twill-capsule-redirections Redirections

Enable the Capsule in config/twill.php:

    'capsules' => [
        'list' => [
            [
                'name' => 'Redirections',
                'enabled' => true,
            ],
            ...

Import the redirector middleware:

<?php

namespace App\Http;

use Illuminate\Foundation\Http\Kernel as HttpKernel;

class Kernel extends HttpKernel
{
    /**
     * The application's global HTTP middleware stack.
     *
     * This middleware is run during every request to your application.
     *
     * @var array
     */
    protected $middleware = [
        \App\Twill\Capsules\Redirections\Http\Middleware\Redirector::class,
        ...
    ];
}

Using

Once installed and configured, you can go to https://your-admin-url/redirections to manage redirections.

About

A Twill Capsule to handle application redirections

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published