Danny-mcc / Laravel-Redirection by Danny-mcc

Redirect pages.
25
0
2
Package Data
Maintainer Username: Danny-mcc
Maintainer Contact: dan@rocketone.co.uk (danny-mcc)
Package Create Date: 2017-06-06
Package Last Update: 2017-06-06
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-12-24 15:05:07
Package Statistics
Total Downloads: 25
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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.