Download the PHP package masterei/laravel-signer without Composer
On this page you can find all versions of the php package masterei/laravel-signer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download masterei/laravel-signer
More information about masterei/laravel-signer
Files in masterei/laravel-signer
Package laravel-signer
Short Description Laravel signed URL wrapper with additional feature such as consumable and user-based signed URLs.
License MIT
Informations about the package laravel-signer
Laravel Signer
Laravel signed URL wrapper with additional feature such as consumable and user-based signed URLs.
Installation
You can install the package via composer:
You need to publish the migration to create the package table:
After that, you need to run migration command.
Optionally, you can publish the config file with:
Compatibility
- Laravel version 9.x.x or later
Usage
Basic Usage
Additional Arguments
As usual, you may exclude the domain from the signed URL hash by providing the absolute
argument
to the class method.
You may also want to force the domain prefix, even if you excluded the domain from the signed URL hash
by providing the prefixDomain
argument to the class method.
Advance Usage
Native Signed URL
If you don't want to use the additional feature. Native signedRoute
and temporarySignedRoute
is a goto option.
Note: This does not store in database and will only be validated using the framework native validation method.
Validating Signed Route Requests
Package Signed Route
Native Signed Route
If your route uses the native signed url method namely signedRoute
and temporarySignedRoute
;
and excluded the domain from the signed URL hash you should provide the relative
argument to the
middleware for it to work.
Classes
Way to reconstruct signed route model back into signed URL:
To parse URL and get its underlying data:
Finding signed URL model using its signature:
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.