classe Authentication étends Model (Voir la source)

Traits

Propriétés

protected array $hidden

The hidden field

depuis  Model
protected bool $timestamps

Enable the timestamps support

depuis  Model
protected string $prefix

Define the table prefix

depuis  Model
protected bool $auto_increment

Enable the autoincrement support

depuis  Model
protected bool $soft_delete

Enable the soft deletion

depuis  Model
protected string $latest

Defines the column where the query construct will use for the last query

depuis  Model
protected array $attributes

The table columns listing

depuis  Model
protected array $dates

The date mutation

depuis  Model
protected array $casts

The casts mutation

depuis  Model
protected string $primary_key

The table primary key column name

depuis  Model
protected string $primary_key_type

The table primary key type

depuis  Model
protected string $table

The table name

depuis  Model
protected string $connection

The connection name

depuis  Model
static protected Builder $builder

The query builder instance

depuis  Model

Méthodes

string
getKey()

Get the table key

belongsTo(string $related, string $foreign_key = null, string $local_key = null)

The has one relative

belongsToMany(string $related, string $primary_key = null, string $foreign_key = null)

The belongs to many relative

hasMany(string $related, string $primary_key = null, string $foreign_key = null)

The has many relative

hasOne(string $related, string $primary_key = null, string $foreign_key = null)

The has one relative

offsetSet(mixed $offset, mixed $value)

_offsetSet

bool
offsetExists(mixed $offset)

_offsetExists

offsetUnset(mixed $offset)

_offsetUnset

mixed|null
offsetGet(mixed $offset)

_offsetGet

__construct(array $attributes = [])

Model constructor.

depuis  Model
static Collection
all(array $columns = [])

Get all records

depuis  Model
static Model
first()

Get first rows

depuis  Model
static Model
latest()

Get last

depuis  Model
static Collection|Model|null
find(mixed $id, array $select = ['*'])

find

depuis  Model
static Collection|null
findBy(string $column, mixed $value)

Find by column name

depuis  Model
static mixed
describe()

Returns the description of the table

depuis  Model
static Collection|Model|null
findAndDelete(mixed $id, array $select = ['*'])

Find information and delete it

depuis  Model
static Model
findOrFail(mixed $id, array|callable $select = ['*'])

Find information by id or throws an exception in data box not found

depuis  Model
static Model
create(array $data)

Create a persist information

depuis  Model
static Collection
paginate(int $page_number, int $current = 0, int $chunk = null)

Pagination configuration

depuis  Model
static 
deleted(callable $cb)

Allows to associate listener

depuis  Model
static 
created(callable $cb)

Allows to associate a listener

depuis  Model
static 
updated(callable $cb)

Allows to associate a listener

depuis  Model
static Builder
query()

Initialize the connection

depuis  Model
mixed
getKeyValue()

Retrieves the primary key value

depuis  Model
int
save()

Save aliases on insert action

depuis  Model
int
update(array $attribute)

Delete a record

depuis  Model
int
delete()

Delete a record

depuis  Model
static int
deleteBy(string $column, mixed $value)

Delete Active Record by column name

depuis  Model
bool
touch()

Used to update the timestamp.

depuis  Model
setAttributes(array $attributes)

Assign values to class attributes

depuis  Model
setAttribute(string $key, string $value)

Assign a value

depuis  Model
setConnection(string $connection)

Set connection point

depuis  Model
array
getAttributes()

Retrieves the list of attributes.

depuis  Model
mixed|null
getAttribute(string $key)

Allows you to recover an attribute

depuis  Model
string
getTable()

Get the table name.

depuis  Model
array
toArray()

Returns the data

depuis  Model
array
toJson()

Returns the data

depuis  Model
jsonSerialize()

Pas de description

depuis  Model
mixed|null
__get(string $name)

__get

depuis  Model
__set(string $name, $value)

__set

depuis  Model
string
__toString()

__toString

depuis  Model
mixed
__call(string $name, array $arguments)

__call

depuis  Model
static mixed
__callStatic(string $name, array $arguments)

__callStatic

depuis  Model
mixed
getAuthenticateUserId()

Get the user id

Détails

abstract string getKey()

Get the table key

Valeur de retour

string

BelongsTo belongsTo(string $related, string $foreign_key = null, string $local_key = null)

The has one relative

Paramètres

string $related
string $foreign_key
string $local_key

Valeur de retour

BelongsTo

BelongsToMany belongsToMany(string $related, string $primary_key = null, string $foreign_key = null)

The belongs to many relative

Paramètres

string $related
string $primary_key
string $foreign_key

Valeur de retour

BelongsToMany

HasMany hasMany(string $related, string $primary_key = null, string $foreign_key = null)

The has many relative

Paramètres

string $related
string $primary_key
string $foreign_key

Valeur de retour

HasMany

HasOne hasOne(string $related, string $primary_key = null, string $foreign_key = null)

The has one relative

Paramètres

string $related
string $primary_key
string $foreign_key

Valeur de retour

HasOne

offsetSet(mixed $offset, mixed $value)

_offsetSet

Paramètres

mixed $offset
mixed $value

Voir aussi

http://php.net/manual/fr/class.arrayaccess.php

bool offsetExists(mixed $offset)

_offsetExists

Paramètres

mixed $offset

Valeur de retour

bool

Voir aussi

http://php.net/manual/fr/class.arrayaccess.php

offsetUnset(mixed $offset)

_offsetUnset

Paramètres

mixed $offset

Voir aussi

http://php.net/manual/fr/class.arrayaccess.php

mixed|null offsetGet(mixed $offset)

_offsetGet

Paramètres

mixed $offset

Valeur de retour

mixed|null

Voir aussi

http://php.net/manual/fr/class.arrayaccess.php

__construct(array $attributes = [])

Model constructor.

Paramètres

array $attributes

static Collection all(array $columns = [])

Get all records

Paramètres

array $columns

Valeur de retour

Collection

static Model first()

Get first rows

Valeur de retour

Model

static Model latest()

Get last

Valeur de retour

Model

static Collection|Model|null find(mixed $id, array $select = ['*'])

find

Paramètres

mixed $id
array $select

Valeur de retour

Collection|Model|null

static Collection|null findBy(string $column, mixed $value)

Find by column name

Paramètres

string $column
mixed $value

Valeur de retour

Collection|null

static mixed describe()

Returns the description of the table

Valeur de retour

mixed

static Collection|Model|null findAndDelete(mixed $id, array $select = ['*'])

Find information and delete it

Paramètres

mixed $id
array $select

Valeur de retour

Collection|Model|null

static Model findOrFail(mixed $id, array|callable $select = ['*'])

Find information by id or throws an exception in data box not found

Paramètres

mixed $id
array|callable $select

Valeur de retour

Model

Exceptions

NotFoundException

static Model create(array $data)

Create a persist information

Paramètres

array $data

Valeur de retour

Model

static Collection paginate(int $page_number, int $current = 0, int $chunk = null)

Pagination configuration

Paramètres

int $page_number
int $current
int $chunk

Valeur de retour

Collection

static deleted(callable $cb)

Allows to associate listener

Paramètres

callable $cb

Exceptions

static created(callable $cb)

Allows to associate a listener

Paramètres

callable $cb

Exceptions

static updated(callable $cb)

Allows to associate a listener

Paramètres

callable $cb

Exceptions

static Builder query()

Initialize the connection

Valeur de retour

Builder

Exceptions

mixed getKeyValue()

Retrieves the primary key value

Valeur de retour

mixed

int save()

Save aliases on insert action

Valeur de retour

int

Exceptions

int update(array $attribute)

Delete a record

Paramètres

array $attribute

Valeur de retour

int

Exceptions

int delete()

Delete a record

Valeur de retour

int

Exceptions

static int deleteBy(string $column, mixed $value)

Delete Active Record by column name

Paramètres

string $column
mixed $value

Valeur de retour

int

bool touch()

Used to update the timestamp.

Valeur de retour

bool

setAttributes(array $attributes)

Assign values to class attributes

Paramètres

array $attributes

setAttribute(string $key, string $value)

Assign a value

Paramètres

string $key
string $value

Builder setConnection(string $connection)

Set connection point

Paramètres

string $connection

Valeur de retour

Builder

array getAttributes()

Retrieves the list of attributes.

Valeur de retour

array

mixed|null getAttribute(string $key)

Allows you to recover an attribute

Paramètres

string $key

Valeur de retour

mixed|null

string getTable()

Get the table name.

Valeur de retour

string

array toArray()

Returns the data

Valeur de retour

array

array toJson()

Returns the data

Valeur de retour

array

jsonSerialize()

Pas de description

mixed|null __get(string $name)

__get

Paramètres

string $name

Valeur de retour

mixed|null

__set(string $name, $value)

__set

Paramètres

string $name
$value

string __toString()

__toString

Valeur de retour

string

mixed __call(string $name, array $arguments)

__call

Paramètres

string $name
array $arguments

Valeur de retour

mixed

static mixed __callStatic(string $name, array $arguments)

__callStatic

Paramètres

string $name
array $arguments

Valeur de retour

mixed

mixed getAuthenticateUserId()

Get the user id

Valeur de retour

mixed