devfaysal / laravel-domain-redirect
Requires
- php: ^7.1
- illuminate/support: 5.5.*|5.6.*|5.7.*|5.8.*
Requires (Dev)
- orchestra/testbench: 3.8.*
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2025-01-04 21:03:30 UTC
README
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 hello@faysal.me 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.