PHP Interface Spatie\UrlSigner\UrlSigner

Datei anzeigen Open project: spatie/url-signer

Public Methods

Method Description
sign ( string $url, mixed $expiration ) : string Get a secure URL to a controller action.
validate ( string $url ) : boolean Validate a signed url.

Method Details

sign() public method

Get a secure URL to a controller action.
public sign ( string $url, mixed $expiration ) : string
$url string
$expiration mixed
return string

validate() public method

Validate a signed url.
public validate ( string $url ) : boolean
$url string
return boolean