Download the PHP package c6digital/laravel-site-redirect without Composer
On this page you can find all versions of the php package c6digital/laravel-site-redirect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download c6digital/laravel-site-redirect
More information about c6digital/laravel-site-redirect
Files in c6digital/laravel-site-redirect
Package laravel-site-redirect
Short Description A small package to redirect all requests elsewhere.
License MIT
Homepage https://github.com/c6digital/laravel-site-redirect
Informations about the package laravel-site-redirect
A small package to redirect all requests elsewhere.
This package can be used to redirect all requests to a site elsewhere with the flick of an environment variable.
Installation
You can install the package via Composer:
You can publish the config file with:
Usage
Use environment variables to enable & disable the redirect and configure the redirect location.
The middleware that handles the redirect is registered globally by the package.
Bypassing redirects
There are times when you want to allow somebody to bypass the redirect mechanism. This can be achieved with a "bypass token".
Start by specifying the bypass token as an environment variables.
To bypass the redirect, simply provide the bypass token in the query string of the request.
This will let you access the site as normal. The bypass will be active for 1 hour so subsequent requests will not require a token.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Ryan Chandler
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-site-redirect with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0|^11.0