3 namespace BookStack\Users\Models;
5 use Illuminate\Database\Eloquent\Relations\BelongsTo;
8 * @property int $created_by
9 * @property int $updated_by
11 trait HasCreatorAndUpdater
14 * Relation for the user that created this entity.
16 public function createdBy(): BelongsTo
18 return $this->belongsTo(User::class, 'created_by');
22 * Relation for the user that updated this entity.
24 public function updatedBy(): BelongsTo
26 return $this->belongsTo(User::class, 'updated_by');