Modify subusers model setup
This commit is contained in:
parent
4f61637284
commit
c8f6c93d26
5 changed files with 124 additions and 29 deletions
|
@ -79,4 +79,14 @@ class Subuser extends Model
|
|||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the permissions associated with a subuser.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
||||
*/
|
||||
public function permissions()
|
||||
{
|
||||
return $this->hasMany(Pemission::class);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue