clearOlderAudits() public method

Clear the oldest audit's if given a limit.
public clearOlderAudits ( ) : void
return void
 /**
  * Audit the Auditable model.
  *
  * @param \OwenIt\Auditing\Contracts\Auditable $model
  *
  * @return \Illuminate\Database\Eloquent\Model
  */
 public function audit(Auditable $model)
 {
     $report = Audit::create($model->toAudit());
     if ($report) {
         $model->clearOlderAudits();
     }
     return $report;
 }