LaravelPackages.net
Acme Inc.
Toggle sidebar
devfaysal/laravel-domain-redirect

5
0
0.0.1
About devfaysal/laravel-domain-redirect

devfaysal/laravel-domain-redirect is a Laravel package. It currently has 0 GitHub stars and 5 downloads on Packagist (latest version 0.0.1). Install it with composer require devfaysal/laravel-domain-redirect. Discover more Laravel packages by devfaysal or browse all Laravel packages to compare alternatives.

Last updated

Redirect Routes to another domain

Latest Version on Packagist Build Status Quality Score Code Style Total Downloads

Redirect laravel routes to another domain using middleware. Example: http://example.com/some-route will redirect to http://anothersite.com/some-route

Installation

You can install the package via composer:

composer require devfaysal/laravel-domain-redirect

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

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

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

Credits

License

The MIT License (MIT). Please see License File for more information.

This package was generated using the Laravel Package Boilerplate.

Star History Chart