StoreRequest
extends FormRequest
in package
Uses
HasTaggedFriendTrait, HasCheckinTrait
Class StoreRequest.
Table of Contents
Methods
- applyLocationRules() : array<string, mixed>
- applyTaggedFriendsRules() : array<string, mixed>
- applyTaggedFriendsRulesForEdit() : array<string, mixed>
- handleTaggedFriend() : array<string|int, mixed>
- isEnableCheckin() : bool
- isEnableTagFriends() : bool
- rules() : array<string, mixed>
- Get the validation rules that apply to the request.
- transform() : array<string, mixed>
- validated() : mixed
- isEdit() : bool
- transformPostAsParent() : array<string|int, mixed>
- validatedPostType() : array<string|int, mixed>
Methods
applyLocationRules()
public
applyLocationRules(array<string, mixed> $rules) : array<string, mixed>
Parameters
- $rules : array<string, mixed>
Return values
array<string, mixed>applyTaggedFriendsRules()
public
applyTaggedFriendsRules(array<string, mixed> $rules) : array<string, mixed>
Parameters
- $rules : array<string, mixed>
Return values
array<string, mixed>applyTaggedFriendsRulesForEdit()
public
applyTaggedFriendsRulesForEdit(array<string, mixed> $rules) : array<string, mixed>
Parameters
- $rules : array<string, mixed>
Return values
array<string, mixed>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', ], ]
isEnableCheckin()
public
isEnableCheckin() : bool
Return values
boolisEnableTagFriends()
public
isEnableTagFriends() : bool
Return values
boolrules()
Get the validation rules that apply to the request.
public
rules() : array<string, mixed>
Tags
Return values
array<string, mixed>transform()
public
transform(array<string, mixed> $data) : array<string, mixed>
Parameters
- $data : array<string, mixed>
Tags
Return values
array<string, mixed>validated()
public
validated([mixed $key = null ][, mixed $default = null ]) : mixed
Parameters
- $key : mixed = null
- $default : mixed = null
Tags
isEdit()
protected
isEdit() : bool
Return values
booltransformPostAsParent()
protected
transformPostAsParent(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
Return values
array<string|int, mixed>validatedPostType()
protected
validatedPostType(string $postType) : array<string|int, mixed>
Parameters
- $postType : string