PHP Trait Esensi\Model\Traits\SoftDeletingModelTrait

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

Public Methods

Method 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 method

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 method

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

getDates() public method

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
return array