{"id":21069181,"url":"https://github.com/devfaysal/laravel-domain-redirect","last_synced_at":"2025-08-16T13:34:01.779Z","repository":{"id":56966552,"uuid":"179426466","full_name":"devfaysal/laravel-domain-redirect","owner":"devfaysal","description":"Redirect laravel routes to another domain","archived":false,"fork":false,"pushed_at":"2019-04-04T07:20:38.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T02:53:19.619Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devfaysal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-04T05:17:30.000Z","updated_at":"2019-04-04T07:20:40.000Z","dependencies_parsed_at":"2022-08-21T06:10:23.932Z","dependency_job_id":null,"html_url":"https://github.com/devfaysal/laravel-domain-redirect","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfaysal%2Flaravel-domain-redirect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfaysal%2Flaravel-domain-redirect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfaysal%2Flaravel-domain-redirect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfaysal%2Flaravel-domain-redirect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devfaysal","download_url":"https://codeload.github.com/devfaysal/laravel-domain-redirect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243510248,"owners_count":20302329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T18:33:02.990Z","updated_at":"2025-03-14T02:25:34.787Z","avatar_url":"https://github.com/devfaysal.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redirect Routes to another domain\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/devfaysal/laravel-domain-redirect.svg?style=flat-square)](https://packagist.org/packages/devfaysal/laravel-domain-redirect)\n[![Build Status](https://img.shields.io/travis/devfaysal/laravel-domain-redirect/master.svg?style=flat-square)](https://travis-ci.org/devfaysal/laravel-domain-redirect)\n[![Quality Score](https://img.shields.io/scrutinizer/g/devfaysal/laravel-domain-redirect.svg?style=flat-square)](https://scrutinizer-ci.com/g/devfaysal/laravel-domain-redirect)\n[![Code Style](https://github.styleci.io/repos/179426466/shield?branch=master)](https://github.styleci.io/repos/179426466)\n[![Total Downloads](https://img.shields.io/packagist/dt/devfaysal/laravel-domain-redirect.svg?style=flat-square)](https://packagist.org/packages/devfaysal/laravel-domain-redirect)\n\nRedirect laravel routes to another domain using middleware.\nExample: http://example.com/some-route will redirect to http://anothersite.com/some-route\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require devfaysal/laravel-domain-redirect\n```\n\n## Usage\nPublish Config file to set domain\n``` php\nphp artisan vendor:publish --tag=domainRedirect\n```\nadd ```domainRedirect``` middleware to the routes that you want to redirect to the domain you just set in the config file\n\n### Testing\n\n``` bash\ncomposer test\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email hello@faysal.me instead of using the issue tracker.\n\n## Credits\n\n- [Faysal Ahamed](https://github.com/devfaysal)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\nThis package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevfaysal%2Flaravel-domain-redirect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevfaysal%2Flaravel-domain-redirect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevfaysal%2Flaravel-domain-redirect/lists"}