![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/ledger.corals.io/vendor/yajra/laravel-auditable/src/ |
<?php namespace Yajra\Auditable; /** * @property mixed deleter */ trait AuditableWithDeletesTrait { use AuditableTrait; /** * Boot the audit trait for a model. * * @return void */ public static function bootAuditableWithDeletesTrait() { static::observe(new AuditableWithDeletesTraitObserver); } /** * Get user model who deleted the record. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function deleter() { return $this->belongsTo($this->getUserClass(), $this->getDeletedByColumn())->withDefault(); } /** * Get column name for deleted by. * * @return string */ public function getDeletedByColumn() { return defined('static::DELETED_BY') ? static::DELETED_BY : 'deleted_by'; } /** * Get deleted by user full name. * * @return string */ public function getDeletedByNameAttribute() { return $this->deleter->name ?? ''; } }