PHPackages                             sirodiaz/laravel-redirection - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. sirodiaz/laravel-redirection

ActiveLibrary[Database &amp; ORM](/categories/database)

sirodiaz/laravel-redirection
============================

Laravel package that allows storing in database (or other sources) urls to redirect for SEO purposes

3.0.0(1y ago)6316.0k↓50%8[2 PRs](https://github.com/SiroDiaz/laravel-redirection/pulls)MITPHPPHP ^8.0CI passing

Since Oct 11Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/SiroDiaz/laravel-redirection)[ Packagist](https://packagist.org/packages/sirodiaz/laravel-redirection)[ Docs](https://github.com/SiroDiaz/laravel-redirection)[ GitHub Sponsors](https://github.com/SiroDiaz)[ RSS](/packages/sirodiaz-laravel-redirection/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (12)Used By (0)

Laravel package for manage your URL redirects in database or other sources to get better SEO results
====================================================================================================

[](#laravel-package-for-manage-your-url-redirects-in-database-or-other-sources-to-get-better-seo-results)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3d232fb0f248f0d71d87bfec2485c557778fd83e9e594f23f0f46c5ccd8a30a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7369726f6469617a2f6c61726176656c2d7265646972656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/SiroDiaz/laravel-redirection)[![run-tests](https://github.com/SiroDiaz/laravel-redirection/actions/workflows/run-tests.yml/badge.svg)](https://github.com/SiroDiaz/laravel-redirection/actions/workflows/run-tests.yml)[![Check & fix styling](https://github.com/SiroDiaz/laravel-redirection/actions/workflows/php-cs-fixer.yml/badge.svg?branch=main)](https://github.com/SiroDiaz/laravel-redirection/actions/workflows/php-cs-fixer.yml)[![Total Downloads](https://camo.githubusercontent.com/b5632adbe4f359ccee9763ac32f094c7cb136d75bb042d367a0cebc8e226145d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f5369726f4469617a2f6c61726176656c2d7265646972656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/SiroDiaz/laravel-redirection)

Requirements
------------

[](#requirements)

You need PHP 8.0 or higher. It is tested and designed for Laravel 9 and 10. This package will receive updates for future Laravel versions. Previous Laravel versions are not contemplated so use [Neurony/laravel-redirects](https://github.com/Neurony/laravel-redirects) package for older Laravel versions.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require SiroDiaz/laravel-redirection
```

You can publish and run the migrations with:

```
php artisan vendor:publish --provider="SiroDiaz\Redirection\RedirectionServiceProvider" --tag="redirection-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="SiroDiaz\Redirection\RedirectionServiceProvider" --tag="redirection-config"
```

This is the contents of the published config file:

```
