Documentation

Message extends Model
in package
Uses HasCompositePrimaryKey

Message Model Inherits from the Model class of Laravel

Tags
author

Guillaume ARNOUX

Table of Contents

$date  : mixed
$incrementing  : mixed
$list_id  : int
$message  : string
$timestamps  : mixed
$user_email  : string
$guarded  : mixed
$primaryKey  : mixed
$table  : mixed
find()  : mixed|static
Execute a query for a single record by ID.
find()  :
findOrFail()  : Model|Collection
Find a model by its primary key or throw an exception.
getIncrementing()  : bool
Get the value indicating whether the IDs are incrementing.
getKey()  : mixed
Get the value of the model's primary key.
getUser()  : string
Get the user that reserved the item
refresh()  : $this
Reload the current model instance with fresh attributes from the database.
where()  :
setKeysForSaveQuery()  : Builder
Set the keys for a save update query.

Properties

$incrementing

public mixed $incrementing = false

$timestamps

public mixed $timestamps = false

$user_email

public string $user_email

$guarded

protected mixed $guarded = []

$primaryKey

protected mixed $primaryKey = ['list_id', 'user_email', 'message', 'date']

$table

protected mixed $table = 'messages'

Methods

find()

Execute a query for a single record by ID.

public static find(array<string|int, mixed> $ids[, array<string|int, mixed> $columns = ['*'] ]) : mixed|static
Parameters
$ids : array<string|int, mixed>

Array of keys, like [column => value].

$columns : array<string|int, mixed> = ['*']
Return values
mixed|static

find()

public static find(int $list_id) :

Eloquent method

Parameters
$list_id : int
Return values

findOrFail()

Find a model by its primary key or throw an exception.

public static findOrFail(mixed $ids[, array<string|int, mixed> $columns = ['*'] ]) : Model|Collection
Parameters
$ids : mixed
$columns : array<string|int, mixed> = ['*']
Tags
throws
ModelNotFoundException
Return values
Model|Collection

getIncrementing()

Get the value indicating whether the IDs are incrementing.

public getIncrementing() : bool
Return values
bool

getKey()

Get the value of the model's primary key.

public getKey() : mixed
Return values
mixed

getUser()

Get the user that reserved the item

public getUser() : string
Return values
string

user lastname and firstname

refresh()

Reload the current model instance with fresh attributes from the database.

public refresh() : $this
Return values
$this

where()

public static where(string $string, string $string1, string $string2) :

Eloquent method

Parameters
$string : string
$string1 : string
$string2 : string
Return values

setKeysForSaveQuery()

Set the keys for a save update query.

protected setKeysForSaveQuery(Builder $query) : Builder
Parameters
$query : Builder
Return values
Builder

Search results