]> BookStack Code Mirror - bookstack/blob - app/JointPermission.php
Update all.blade.php
[bookstack] / app / JointPermission.php
1 <?php namespace BookStack;
2
3 class JointPermission extends Model
4 {
5     public $timestamps = false;
6
7     /**
8      * Get the role that this points to.
9      * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
10      */
11     public function role()
12     {
13         return $this->belongsTo(Role::class);
14     }
15
16     /**
17      * Get the entity this points to.
18      * @return \Illuminate\Database\Eloquent\Relations\MorphOne
19      */
20     public function entity()
21     {
22         return $this->morphOne(Entity::class, 'entity');
23     }
24 }
Morty Proxy This is a proxified and sanitized view of the page, visit original site.