1 <?php namespace BookStack;
3 class JointPermission extends Model
5 public $timestamps = false;
8 * Get the role that this points to.
9 * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
11 public function role()
13 return $this->belongsTo(Role::class);
17 * Get the entity this points to.
18 * @return \Illuminate\Database\Eloquent\Relations\MorphOne
20 public function entity()
22 return $this->morphOne(Entity::class, 'entity');