PHP Trait Esensi\Model\Traits\SoftDeletingModelTrait

See also: Esensi\Model\Contracts\SoftDeletingModelInterface
Author: Daniel LaBarge ([email protected])
Inheritance: use trait Illuminate\Database\Eloquent\SoftDeletes
Afficher le fichier Open project: esensi/model

Méthodes publiques

Méthode Description
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.

Method Details

bootSoftDeletes() public static méthode

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

bootSoftDeletingModelTrait() public static méthode

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

getDates() public méthode

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
Résultat array