Modify subusers model setup

This commit is contained in:
Dane Everitt 2017-02-09 18:44:07 -05:00
parent 4f61637284
commit c8f6c93d26
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 124 additions and 29 deletions

View file

@ -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);
}
}