VolumeUrl
class VolumeUrl implements Rule
Constants
| PROVIDER_DENYLIST_REGEX |
Regexes to match denied storage providers. |
Properties
| protected string | $message | The validation message to display. |
Methods
Create a new instance.
Determine if the validation rule passes.
Get the validation error message.
Validate a remote volume URL.
Validate a storage disk volume URL.
Determine if the new remote volume URL is from a denied provider.
Determine if the remote volume URL points to this application.
Determine if the given path has a directory traversal
Details
at line 39
__construct()
Create a new instance.
at line 51
bool
passes(string $attribute, mixed $value)
Determine if the validation rule passes.
at line 65
string
message()
Get the validation error message.
at line 77
protected bool
passesRemoteUrl(string $value)
Validate a remote volume URL.
at line 129
protected bool
passesDiskUrl(string $value)
Validate a storage disk volume URL.
at line 185
protected bool
isDeniedProvider(string $value)
Determine if the new remote volume URL is from a denied provider.
at line 203
protected bool
isOwnDomain(string $value)
Determine if the remote volume URL points to this application.
at line 218
static bool
pathHasDirectoryTraversal(string $path)
Determine if the given path has a directory traversal