PHPackages                             mdooley47/laravel-redirect - 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. mdooley47/laravel-redirect

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

mdooley47/laravel-redirect
==========================

Extends Laravel's redirect capabilities

v1.0.0(7y ago)019MITPHP

Since Sep 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MDooley47/laravel-redirect)[ Packagist](https://packagist.org/packages/mdooley47/laravel-redirect)[ RSS](/packages/mdooley47-laravel-redirect/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (2)Used By (0)

Important

This project is old and not used anymore. Please use something like [ash-jc-allen/short-url](https://github.com/ash-jc-allen/short-url) instead.

laravel-redirect
================

[](#laravel-redirect)

Install
-------

[](#install)

You can install the package with composer:

```
composer require mdooley47/laravel-redirect
```

How To Use
----------

[](#how-to-use)

The purpose of this package is to provide a default `targetUrl` when redirecting in Laravel, if the current target does not match the desired url.

Simply call `defaultTarget($options, $default)` on the Redirect Facade.
`$options` either an array listing the robust validation options provided by [mdooley47/laravel-urlvalidator](https://github.com/mdooley47/laravel-urlvalidator) or a string that will use the `host` validator provided by [mdooley47/laravel-urlvalidator](https://github.com/mdooley47/laravel-urlvalidator).

```
\Illuminate\Support\Facades\Redirect::back()
    ->defaultTarget('match.domain.tld', 'default.domain.tld');

// Returns \Illuminate\Support\Facades\Redirect::getTargetUrl()
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

2810d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d099c61c3ba07e16c61a0c278c9536615863c954b01d9efbddcc7a77a4d299a?d=identicon)[MDooley47](/maintainers/MDooley47)

---

Top Contributors

[![marzvrover](https://avatars.githubusercontent.com/u/6617862?v=4)](https://github.com/marzvrover "marzvrover (11 commits)")

---

Tags

laravelredirect

### Embed Badge

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

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

###  Alternatives

[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[yajra/laravel-datatables-editor

Laravel DataTables Editor plugin for Laravel 5.5+.

1186.1M2](/packages/yajra-laravel-datatables-editor)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)

PHPackages © 2026

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