mega-commit: migrations, controllers, models, etc.
This commit is contained in:
parent
9732135e90
commit
2c6745e812
70 changed files with 2124 additions and 400 deletions
|
@ -17,11 +17,9 @@ class Permission extends Model
|
|||
'updated_at',
|
||||
];
|
||||
|
||||
// Permissions are linked to users by the user_permissions table
|
||||
// User permissions are linked to users by the user_id and are valid per date
|
||||
public function users()
|
||||
{
|
||||
return $this->belongsToMany(User::class, 'user_permissions', 'permission_id', 'user_id');
|
||||
return $this->belongsToMany('App\Models\User', 'user_permissions', 'permission_id', 'user_id');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue