UserInfo
extends JsonResource
in package
Uses
UserLocationTrait
Class User.
Tags
Table of Contents
Properties
Methods
- canViewLocation() : bool
- getLocation() : array<string, mixed>
- getLocationValue() : string
- toArray() : array<string, mixed>
- Transform the resource collection into an array.
- getBasicInfo() : array<string, mixed>
- getProfileSettings() : mixed
Properties
$resource
public
User
$resource
Methods
canViewLocation()
public
canViewLocation(User $context, User $user) : bool
Parameters
Return values
boolgetLocation()
public
getLocation(User $context, User $resource) : array<string, mixed>
Parameters
Return values
array<string, mixed>getLocationValue()
public
getLocationValue(User $context, mixed $resource) : string
Parameters
- $context : User
- $resource : mixed
Return values
stringtoArray()
Transform the resource collection into an array.
public
toArray(Request $request) : array<string, mixed>
Parameters
- $request : Request
Tags
Return values
array<string, mixed>getBasicInfo()
protected
getBasicInfo(UserProfile $profile) : array<string, mixed>
Parameters
- $profile : UserProfile
Return values
array<string, mixed>getProfileSettings()
protected
getProfileSettings() : mixed