Liste
extends Model
in package
Liste Model Inherits from the Model class of Laravel
Tags
Table of Contents
- $description : string
- $expiration : mixed
- $is_public : mixed
- $items : mixed
- $no : int
- $private_key : string
- $public_key : string
- $published : mixed
- $timestamps : mixed
- $titre : string
- $user_id : int
- $appends : mixed
- $fillable : mixed
- $hidden : mixed
- $primaryKey : mixed
- $table : mixed
- getUserNameAttribute() : string|null
- Internal method for toJSON() method of Slim
- isClaimed() : bool
- Check if a list is claimed
- isExpired() : bool
- Check if a list is expired
- isPublic() : bool
- Check if a list is public
- isPublished() : bool
- Check if a list is published
- items() : HasMany
- Get items associated to the list
- where() :
- whereUserId() :
Properties
$description
public
string
$description
$expiration
public
mixed
$expiration
$is_public
public
mixed
$is_public
$items
public
mixed
$items
Goes to items(), eloquent relation
$no
public
int
$no
$private_key
public
string
$private_key
$public_key
public
string
$public_key
$published
public
mixed
$published
$timestamps
public
mixed
$timestamps
= false
$titre
public
string
$titre
$user_id
public
int
$user_id
$appends
protected
mixed
$appends
= ['user_name']
$fillable
protected
mixed
$fillable
= ['titre', 'user_id', 'description', 'expiration', 'public_key', 'published', 'is_public']
$hidden
protected
mixed
$hidden
= ['user_id', 'private_key']
$primaryKey
protected
mixed
$primaryKey
= 'no'
$table
protected
mixed
$table
= 'liste'
Methods
getUserNameAttribute()
Internal method for toJSON() method of Slim
public
getUserNameAttribute() : string|null
Tags
Return values
string|null —user's name if exists, null otherwise
isClaimed()
Check if a list is claimed
public
isClaimed() : bool
Return values
bool —at true if claimed, false otherwise
isExpired()
Check if a list is expired
public
isExpired() : bool
Return values
bool —true if the list is expired, false otherwise
isPublic()
Check if a list is public
public
isPublic() : bool
Return values
bool —true if public, false otherwise
isPublished()
Check if a list is published
public
isPublished() : bool
Return values
bool —true if published, false otherwise
items()
Get items associated to the list
public
items() : HasMany
Return values
HasMany —items has many relation
where()
public
static where(string $string, string $string1, string $string2) :
Eloquent method
Parameters
- $string : string
- $string1 : string
- $string2 : string
Return values
—whereUserId()
public
static whereUserId(int $user_id) :
Eloquent method
Parameters
- $user_id : int