UserResource
extends JsonResource
in package
Table of Contents
- $created_at : DateTime
- $email : string
- $first_name : string
- $id : int
- $is_owner : bool
- $last_hostname : string
- $last_ip : string
- $last_name : string
- $preserveKeys : mixed
- $second_factor : string
- $updated_at : DateTime
- toArray() : array<string|int, mixed>
- Transform the resource into an array.
- with() : array<string|int, mixed>
Properties
$created_at
public
DateTime
$created_at
public
string
$email
$first_name
public
string
$first_name
$id
public
int
$id
$is_owner
public
bool
$is_owner
$last_hostname
public
string
$last_hostname
$last_ip
public
string
$last_ip
$last_name
public
string
$last_name
$preserveKeys
public
mixed
$preserveKeys
= true
$second_factor
public
string
$second_factor
$updated_at
public
DateTime
$updated_at
Methods
toArray()
Transform the resource into an array.
public
toArray(Request $request) : array<string|int, mixed>
Parameters
- $request : Request
Return values
array<string|int, mixed> —with()
public
with( $request) : array<string|int, mixed>