Base64FileTypeRule
in package
implements
Rule
Table of Contents
Interfaces
- Rule
Properties
- $fileType : string
Methods
- __construct() : mixed
- message() : string
- Get the validation error message.
- passes() : bool
- Determine if the validation rule passes.
Properties
$fileType
private
string
$fileType
Methods
__construct()
public
__construct([string $fileType = 'photo' ]) : mixed
Parameters
- $fileType : string = 'photo'
message()
Get the validation error message.
public
message() : string
Return values
stringpasses()
Determine if the validation rule passes.
public
passes(string $attribute, mixed $value) : bool
Parameters
- $attribute : string
- $value : mixed