MetaFox

UpdateRequest extends FormRequest
in package
Uses HandleTagFriendTrait

Class UpdateRequest.

Table of Contents

Methods

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

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

transformWithoutPhotoId()

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

transformWithPhotoId()

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

        
On this page

Search results