PHP 인터페이스 Stevemo\Cpanel\Services\Validation\ValidableInterface

파일 보기 프로젝트 열기: stevemo/cpanel 0 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

add() 공개 메소드

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

errors() 공개 메소드

Retrieve validation errors
저자: Steve Montambeault
public errors ( ) : Illuminate\Support\MessageBag
리턴 Illuminate\Support\MessageBag

getData() 공개 메소드

Get the stored data
저자: Steve Montambeault
public getData ( ) : array
리턴 array

passes() 공개 메소드

Test if validation passes
저자: Steve Montambeault
public passes ( ) : boolean
리턴 boolean

validForCreate() 공개 메소드

Test if validation passes before create
저자: Steve Montambeault
public validForCreate ( ) : boolean
리턴 boolean

validForUpdate() 공개 메소드

Test if validation passes before update
저자: Steve Montambeault
public validForUpdate ( ) : boolean
리턴 boolean

with() 공개 메소드

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