clickbar / laravel-validate-relative-signature
Middleware for validating relative signed url requests.
Requires
- php: ^7.2
- illuminate/support: ^5.7
Requires (Dev)
- orchestra/testbench: ^3.8
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-11-23 01:01:05 UTC
README
In Laravel you can use the signed middleware URL to sign URLs for activation links etc.. There's also a undocumented relative parameter which makes it possible to sign relative URLs.
This is useful if you are using Laravel just as an API and host it somewhere else than your frontend. You can still use your pretty frontend URLs instead of those of the API.
e.g.: instead of signing https://example.com/activate-email
you sign /activate-email
.
Installation
You can install the package via composer:
composer require clickbar/laravel-validate-relative-signature
Usage
After installing the package is auto-discovered and you now have a signed.relative
middleware to verify signed URLs with a relative URL.
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 avs@clickbar.rocks instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.