Looking to hire Laravel developers? Try LaraJobs

laravel-domain-redirect maintained by devfaysal

Author
Last update
2019/04/04 09:20 (dev-master)
License
Downloads
5

Comments
comments powered by Disqus

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 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.