1 <?php namespace BookStack\Auth\Permissions;
3 use BookStack\Auth\Role;
4 use BookStack\Entities\Entity;
7 class JointPermission extends Model
9 public $timestamps = false;
12 * Get the role that this points to.
13 * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
15 public function role()
17 return $this->belongsTo(Role::class);
21 * Get the entity this points to.
22 * @return \Illuminate\Database\Eloquent\Relations\MorphOne
24 public function entity()
26 return $this->morphOne(Entity::class, 'entity');