PHPackages                             brayniverse/laravel-redirect-helper - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. brayniverse/laravel-redirect-helper

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

brayniverse/laravel-redirect-helper
===================================

Syntactic sugar for those occasions when you want to redirect from an old route to a new route.

v1.0.4(9y ago)63161[2 issues](https://github.com/brayniverse/laravel-redirect-helper/issues)MITPHPPHP ^5.5.9 || ^7.0

Since Aug 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/brayniverse/laravel-redirect-helper)[ Packagist](https://packagist.org/packages/brayniverse/laravel-redirect-helper)[ Docs](https://github.com/brayniverse/laravel-redirect-helper)[ RSS](/packages/brayniverse-laravel-redirect-helper/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

Laravel redirect helper
=======================

[](#laravel-redirect-helper)

[![Build Status](https://camo.githubusercontent.com/51b6bb4e1a43f3a39ef570d8f02fb31149fa89e0017e45bcc81c379d55d0c56f/68747470733a2f2f7472617669732d63692e6f72672f627261796e6976657273652f6c61726176656c2d72656469726563742d68656c7065722e737667)](https://travis-ci.org/brayniverse/laravel-redirect-helper)[![Total Downloads](https://camo.githubusercontent.com/9c244c3f57ab601d1828832dc5e920763a818691b6ae45a6e647457e343f714d/68747470733a2f2f706f7365722e707567782e6f72672f627261796e6976657273652f6c61726176656c2d72656469726563742d68656c7065722f642f746f74616c2e737667)](https://packagist.org/packages/brayniverse/laravel-redirect-helper)[![Latest Stable Version](https://camo.githubusercontent.com/bee7937778643bdc4a27af1f4cbaf7efe0674c44b4540748aec44d9fad8db2b0/68747470733a2f2f706f7365722e707567782e6f72672f627261796e6976657273652f6c61726176656c2d72656469726563742d68656c7065722f762f737461626c652e737667)](https://packagist.org/packages/brayniverse/laravel-redirect-helper)[![Latest Unstable Version](https://camo.githubusercontent.com/54b3fd23e580d11d7fa9b4f145222717a5b14597bb98f5ccdc7d8ebb0104cb83/68747470733a2f2f706f7365722e707567782e6f72672f627261796e6976657273652f6c61726176656c2d72656469726563742d68656c7065722f762f756e737461626c652e737667)](https://packagist.org/packages/brayniverse/laravel-redirect-helper)[![License](https://camo.githubusercontent.com/2a20f45ead0bc30b69ae9ef11caac1d3bbe749771afc6b0988d1ab8646ae3dc2/68747470733a2f2f706f7365722e707567782e6f72672f627261796e6976657273652f6c61726176656c2d72656469726563742d68656c7065722f6c6963656e73652e737667)](https://packagist.org/packages/brayniverse/laravel-redirect-helper)

Syntactic sugar for those occasions when you want to redirect from an old route to a new route.

This package adds a `Route::redirect()` helper method so you don't have to create a closure for each redirect.

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

[](#installation)

Begin by installing the package through Composer.

```
$ composer require brayniverse/laravel-redirect-helper
```

Then add the following to your providers array in `config/app.php`.

```
Brayniverse\LaravelRedirectHelper\ServiceProvider::class
```

Usage
-----

[](#usage)

Normally you'd have to create a closure to redirect to the new route.

```
Route::get('/contact_us', function () {
  return redirect('/contact');
});
```

Now you can do the same in one line.

```
Route::redirect('/contact_us', '/contact');
```

### Setting status code

[](#setting-status-code)

Optionally, you can pass a third argument to `Route::redirect()` which will set the status code when redirecting. If you do not specify a status code, the package will use `301` as the status code.

```
Route::redirect('/contact_us', '/contact', 302);
```

Credits
-------

[](#credits)

- [Christopher L Bray](https://github.com/brayniverse)
- [All Contributors](../../contributors)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~34 days

Total

5

Last Release

3455d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3664b68c79080e06a369c2418777324c7d9daa6425a30e1e8ed4ae6607f9bb2?d=identicon)[brayniverse](/maintainers/brayniverse)

---

Top Contributors

[![brayniverse](https://avatars.githubusercontent.com/u/945367?v=4)](https://github.com/brayniverse "brayniverse (20 commits)")

---

Tags

laravellaravelhelperrouting

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brayniverse-laravel-redirect-helper/health.svg)

```
[![Health](https://phpackages.com/badges/brayniverse-laravel-redirect-helper/health.svg)](https://phpackages.com/packages/brayniverse-laravel-redirect-helper)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

984.0k](/packages/zidbih-laravel-deadlock)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
