dannymcc/laravel-redirection

Redirect pages.
27
Install
composer require dannymcc/laravel-redirection
Latest Version:1.0.0
PHP:^7.0
License:MIT
Last Updated:Jun 6, 2017
Links: GitHub  ·  Packagist
Maintainer: Danny-mcc

Laravel Redirection

A package for handling redirects via a database.

Installation

You can install the package via composer:

composer require dannymcc/laravel-redirection

Next add the service provider to config/app.php:

// config/app.php
'providers' => [
    ...
    Dannymcc\Redirection\RedirectionServiceProvider::class,
];

Optional, publish the config file:

php artisan vendor:publish --provider="Dannymcc\LaravelRedirection\RedirectionServiceProvider"

Usage

Redirect::create([
    'from_url'      => '/from-here',
    'to_url'        => '/to-here,
    'status_code'   => 302
]);

License

The MIT License (MIT). Please see License File for more information.

Related Packages

fsasvari/laravel-trailing-slash

Adds redirection with trailing slash in Laravel.

173,098 61
sander-van-hooft/laravel-payable-redirect-mollie

Associate Mollie payments with Laravel Eloquent models

493 21
owenmelbz/https-enforcement

Laravel 5.x middleware to enforce https redirection for your app.

2,597 25
pmk/redirect-october-plugin

Plugin for October CMS to redirect a page to an internal page, or to an external...

32 2
yaroslawww/laravel-force-https

Easy redirect to https for Laravel

9,745 12