1 <?php namespace BookStack\Traits;
3 use BookStack\Auth\User;
4 use Illuminate\Database\Eloquent\Relations\BelongsTo;
7 * @property int owned_by
12 * Relation for the user that owns this entity.
14 public function ownedBy(): BelongsTo
16 return $this->belongsTo(User::class, 'owned_by');