added permissions to settings
This commit is contained in:
parent
83f7073b18
commit
c31524977a
8 changed files with 121 additions and 83 deletions
|
|
@ -24,4 +24,9 @@ class MovieList extends Model
|
|||
{
|
||||
return $this->belongsTo(User::class, 'user_id');
|
||||
}
|
||||
|
||||
public function sharedUsers(): BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(User::class)->withPivot('permission')->withTimestamps();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue