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

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

devfaysal/laravel-domain-redirect
=================================

0.0.1(7y ago)05MITPHPPHP ^7.1

Since Apr 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/devfaysal/laravel-domain-redirect)[ Packagist](https://packagist.org/packages/devfaysal/laravel-domain-redirect)[ Docs](https://github.com/devfaysal/laravel-domain-redirect)[ RSS](/packages/devfaysal-laravel-domain-redirect/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Redirect Routes to another domain
=================================

[](#redirect-routes-to-another-domain)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a8eb24733bf766c4391063c744639e0a95c615eb3fef30138714ca64a2f20750/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657666617973616c2f6c61726176656c2d646f6d61696e2d72656469726563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devfaysal/laravel-domain-redirect)[![Build Status](https://camo.githubusercontent.com/583f50cbedabfaa6adac5cc3d1473a127fc436c8ab6daab6a5f0f633659ba9c3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f64657666617973616c2f6c61726176656c2d646f6d61696e2d72656469726563742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/devfaysal/laravel-domain-redirect)[![Quality Score](https://camo.githubusercontent.com/ce55798c03eef1261af82501bc9a6860e9d245ad51e7c5dd88750a6f47cadf6b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f64657666617973616c2f6c61726176656c2d646f6d61696e2d72656469726563742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/devfaysal/laravel-domain-redirect)[![Code Style](https://camo.githubusercontent.com/033a09dfb8dece12f915affebfa6e49aecd57a38004aec83da1bf31d426d6c56/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3137393432363436362f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/179426466)[![Total Downloads](https://camo.githubusercontent.com/cf76b2c991632b71a0aba8e481e75cfaf8d70ac393654c4286bd62df961ad631/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64657666617973616c2f6c61726176656c2d646f6d61696e2d72656469726563742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/devfaysal/laravel-domain-redirect)

Redirect laravel routes to another domain using middleware. Example:  will redirect to

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

[](#installation)

You can install the package via composer:

```
composer require devfaysal/laravel-domain-redirect
```

Usage
-----

[](#usage)

Publish Config file to set domain

```
php artisan vendor:publish --tag=domainRedirect
```

add `domainRedirect` middleware to the routes that you want to redirect to the domain you just set in the config file

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Faysal Ahamed](https://github.com/devfaysal)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

2597d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f50719e87e4226e3140b479c102248ad1a44f95a059dc34092945a375b68826?d=identicon)[devfaysal](/maintainers/devfaysal)

---

Top Contributors

[![devfaysal](https://avatars.githubusercontent.com/u/16212149?v=4)](https://github.com/devfaysal "devfaysal (10 commits)")

---

Tags

devfaysallaravel-domain-redirect

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[illuminate/cookie

The Illuminate Cookie package.

224.3M122](/packages/illuminate-cookie)

PHPackages © 2026

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