Skip to content

Danny-mcc/Laravel-Redirection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Laravel package for redirections.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages