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 laravel routes to another domain using middleware. Example: http://example.com/some-route will redirect to http://anothersite.com/some-route
You can install the package via composer:
composer require devfaysal/laravel-domain-redirect
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
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.