Authentication
classe Authentication étends Model (Voir la source)
Traits
Propriétés
$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
The has one relative
The belongs to many relative
The has many relative
The has one relative
Find information and delete it
Find information by id or throws an exception in data box not found
Pagination configuration
Get the user id
Détails
abstract string
getKey()
Get the table key
BelongsTo
belongsTo(string $related, string $foreign_key = null, string $local_key = null)
The has one relative
BelongsToMany
belongsToMany(string $related, string $primary_key = null, string $foreign_key = null)
The belongs to many relative
HasMany
hasMany(string $related, string $primary_key = null, string $foreign_key = null)
The has many relative
HasOne
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
dans
Model à la ligne 128
__construct(array $attributes = [])
Model constructor.
dans
Model à la ligne 144
static Collection
all(array $columns = [])
Get all records
dans
Model à la ligne 160
static Model
first()
Get first rows
dans
Model à la ligne 170
static Model
latest()
Get last
dans
Model à la ligne 184
static Collection|Model|null
find(mixed $id, array $select = ['*'])
find
dans
Model à la ligne 208
static Collection|null
findBy(string $column, mixed $value)
Find by column name
dans
Model à la ligne 221
static mixed
describe()
Returns the description of the table
dans
Model à la ligne 234
static Collection|Model|null
findAndDelete(mixed $id, array $select = ['*'])
Find information and delete it
dans
Model à la ligne 252
static Model
findOrFail(mixed $id, array|callable $select = ['*'])
Find information by id or throws an exception in data box not found
dans
Model à la ligne 269
static Model
create(array $data)
Create a persist information
dans
Model à la ligne 313
static Collection
paginate(int $page_number, int $current = 0, int $chunk = null)
Pagination configuration
dans
Model à la ligne 324
static
deleted(callable $cb)
Allows to associate listener
dans
Model à la ligne 337
static
created(callable $cb)
Allows to associate a listener
dans
Model à la ligne 350
static
updated(callable $cb)
Allows to associate a listener
dans
Model à la ligne 363
static Builder
query()
Initialize the connection
dans
Model à la ligne 408
mixed
getKeyValue()
Retrieves the primary key value
dans
Model à la ligne 433
int
save()
Save aliases on insert action
dans
Model à la ligne 521
int
update(array $attribute)
Delete a record
dans
Model à la ligne 566
int
delete()
Delete a record
dans
Model à la ligne 596
static int
deleteBy(string $column, mixed $value)
Delete Active Record by column name
dans
Model à la ligne 610
bool
touch()
Used to update the timestamp.
dans
Model à la ligne 626
setAttributes(array $attributes)
Assign values to class attributes
dans
Model à la ligne 637
setAttribute(string $key, string $value)
Assign a value
dans
Model à la ligne 648
Builder
setConnection(string $connection)
Set connection point
dans
Model à la ligne 662
array
getAttributes()
Retrieves the list of attributes.
dans
Model à la ligne 673
mixed|null
getAttribute(string $key)
Allows you to recover an attribute
dans
Model à la ligne 695
string
getTable()
Get the table name.
dans
Model à la ligne 705
array
toArray()
Returns the data
dans
Model à la ligne 715
array
toJson()
Returns the data
dans
Model à la ligne 731
jsonSerialize()
Pas de description
dans
Model à la ligne 750
mixed|null
__get(string $name)
__get
dans
Model à la ligne 820
__set(string $name, $value)
__set
dans
Model à la ligne 830
string
__toString()
__toString
dans
Model à la ligne 842
mixed
__call(string $name, array $arguments)
__call
dans
Model à la ligne 863
static mixed
__callStatic(string $name, array $arguments)
__callStatic
mixed
getAuthenticateUserId()
Get the user id