PHP Interface Stevemo\Cpanel\Services\Validation\ValidableInterface

Afficher le fichier Open project: stevemo/cpanel Interface Usage Examples

Méthodes publiques

Méthode Description
add ( string $key, string $message ) Add a message to the bag.
errors ( ) : Illuminate\Support\MessageBag Retrieve validation errors
getData ( ) : array Get the stored data
passes ( ) : boolean Test if validation passes
validForCreate ( ) : boolean Test if validation passes before create
validForUpdate ( ) : boolean Test if validation passes before update
with ( array $input ) Add data to validation against

Method Details

add() public méthode

Add a message to the bag.
Author: Steve Montambeault
public add ( string $key, string $message )
$key string
$message string

errors() public méthode

Retrieve validation errors
Author: Steve Montambeault
public errors ( ) : Illuminate\Support\MessageBag
Résultat Illuminate\Support\MessageBag

getData() public méthode

Get the stored data
Author: Steve Montambeault
public getData ( ) : array
Résultat array

passes() public méthode

Test if validation passes
Author: Steve Montambeault
public passes ( ) : boolean
Résultat boolean

validForCreate() public méthode

Test if validation passes before create
Author: Steve Montambeault
public validForCreate ( ) : boolean
Résultat boolean

validForUpdate() public méthode

Test if validation passes before update
Author: Steve Montambeault
public validForUpdate ( ) : boolean
Résultat boolean

with() public méthode

Add data to validation against
Author: Steve Montambeault
public with ( array $input )
$input array