OwenIt\Auditing\Contracts\Auditable::prepareAudit PHP Method

prepareAudit() public method

Prepare audit model.
public prepareAudit ( ) : void
return void
    public function prepareAudit();

Usage Example

Example #1
0
 /**
  * Handle the deleted event for the model.
  *
  * @param \OwenIt\Auditing\Contracts\Auditable $model
  *
  * @return void
  */
 public function deleted(Auditable $model)
 {
     $model->prepareAudit();
     $model->auditDeletion();
 }