PHP Трейт Esensi\Model\Traits\SoftDeletingModelTrait

См. также: Esensi\Model\Contracts\SoftDeletingModelInterface
Автор: Daniel LaBarge ([email protected])
Наследование: use trait Illuminate\Database\Eloquent\SoftDeletes
Показать файл Открыть проект

Открытые методы

Метод Описание
bootSoftDeletes ( ) We want to boot our own observer so we stub out this boot method. This renders this function void.
bootSoftDeletingModelTrait ( ) Boot the trait's observers.
getDates ( ) : array Get the attributes that should be converted to dates.

Описание методов

bootSoftDeletes() публичный статический Метод

We want to boot our own observer so we stub out this boot method. This renders this function void.
public static bootSoftDeletes ( )

bootSoftDeletingModelTrait() публичный статический Метод

Boot the trait's observers.
public static bootSoftDeletingModelTrait ( )

getDates() публичный Метод

Overwriting this method here allows the developer to extend the dates using the $dates property without needing to maintain the "deleted_at" column.
public getDates ( ) : array
Результат array