MetaFox

StoreRequest extends FormRequest
in package
Uses HandleTagFriendTrait

Class StoreRequest.

Table of Contents

Methods

handleTaggedFriend()  : array<string|int, mixed>
rules()  : array<string, mixed>
Get the validation rules that apply to the request.
validated()  : mixed
failedValidation()  : mixed
getCaptchaRuleName()  : string

Methods

handleTaggedFriend()

public handleTaggedFriend(array<string, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string, mixed>
Return values
array<string|int, mixed>

[ 1 => 1, 2 => [ 'friend_id' => 2, 'px' => 100, 'py' => 200, ], 3 => [ 'friend_id' => 2, 'is_mention' => 1, 'content' => 'user test ahihi', ], ]

rules()

Get the validation rules that apply to the request.

public rules() : array<string, mixed>
Return values
array<string, mixed>

validated()

public validated([mixed $key = null ][, mixed $default = null ]) : mixed
Parameters
$key : mixed = null
$default : mixed = null

failedValidation()

protected failedValidation(Validator $validator) : mixed
Parameters
$validator : Validator

getCaptchaRuleName()

protected getCaptchaRuleName() : string
Return values
string

        
On this page

Search results