Documentation

Cagnotte extends Model
in package

Cagnotte Model Inherits from the Model class of Laravel

Tags
author

Guillaume ARNOUX

Table of Contents

$item  : mixed
$item_id  : int
$limite  : mixed
$montant  : float
$timestamps  : mixed
$guarded  : mixed
$primaryKey  : mixed
$table  : mixed
find()  :
isExpired()  : bool
Check if a pot is expired
item()  : BelongsTo
Get the associated item of a pot
participants()  : string
Get all participants of a pot
remove()  : void
Delete a pot Delete all participations of the pot
reste()  : float
Calculate the remaining amount of a pot
totalAmount()  : float
Get total amount of a pot
where()  :

Properties

$item

public mixed $item

Goes to item() method, eloquent relation

$timestamps

public mixed $timestamps = false

$primaryKey

protected mixed $primaryKey = 'item_id'

$table

protected mixed $table = 'cagnotte'

Methods

find()

public static find(int $cagnotte_id) :

Eloquent method

Parameters
$cagnotte_id : int
Return values

isExpired()

Check if a pot is expired

public isExpired() : bool
Return values
bool

true if the pot is expired, false otherwise

item()

Get the associated item of a pot

public item() : BelongsTo
Return values
BelongsTo

item belongsTo relation

participants()

Get all participants of a pot

public participants() : string
Tags
noinspection

PhpUnused

Return values
string

html code of the participants

remove()

Delete a pot Delete all participations of the pot

public remove() : void
Return values
void

reste()

Calculate the remaining amount of a pot

public reste() : float
Return values
float

remaining amount

totalAmount()

Get total amount of a pot

public totalAmount() : float
Return values
float

total amount

where()

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

Eloquent method

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

Search results