devfaysal/laravel-domain-redirect

0.0.1 2019-04-04 06:46 UTC

This package is auto-updated.

Last update: 2024-05-04 19:38:33 UTC


README

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.