Participation
extends Model
in package
Uses
HasCompositePrimaryKey
Participation Model Inherits from the Model class of Laravel
Tags
Table of Contents
- $cagnotte_itemid : int
- $incrementing : mixed
- $montant : float
- $timestamps : mixed
- $user_email : string
- $guarded : mixed
- $keyType : mixed
- $primaryKey : mixed
- $table : mixed
- find() : mixed|static
- Execute a query for a single record by ID.
- 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.
- refresh() : $this
- Reload the current model instance with fresh attributes from the database.
- where() :
- whereCagnotteItemid() :
- whereCagnotteItemidAndUserEmail() :
- setKeysForSaveQuery() : Builder
- Set the keys for a save update query.
Properties
$cagnotte_itemid
public
int
$cagnotte_itemid
$incrementing
public
mixed
$incrementing
= false
$montant
public
float
$montant
$timestamps
public
mixed
$timestamps
= false
$user_email
public
string
$user_email
$guarded
protected
mixed
$guarded
= []
$keyType
protected
mixed
$keyType
= 'string'
$primaryKey
protected
mixed
$primaryKey
= ['cagnotte_itemid', 'user_email']
$table
protected
mixed
$table
= 'participe'
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 —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
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 —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
—whereCagnotteItemid()
public
static whereCagnotteItemid(int $cagnotte_itemid) :
Eloquent method
Parameters
- $cagnotte_itemid : int
Return values
—whereCagnotteItemidAndUserEmail()
public
static whereCagnotteItemidAndUserEmail(mixed $item_id, string $user_email) :
Eloquent method
Parameters
- $item_id : mixed
- $user_email : string
Return values
—setKeysForSaveQuery()
Set the keys for a save update query.
protected
setKeysForSaveQuery(Builder $query) : Builder
Parameters
- $query : Builder