dannymcc/laravel-redirection

Redirect pages.

Installs: 25

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/dannymcc/laravel-redirection

1.0.0 2017-06-06 20:05 UTC

This package is not auto-updated.

Last update: 2025-09-28 08:38:28 UTC


README

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.