mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-25 07:23:59 +00:00
backend registration step 1
This commit is contained in:
@@ -62,4 +62,12 @@ class User extends AbstractModel implements
|
||||
return $this->hasMany(Order::class, 'user_id', 'id');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return belongsToMany
|
||||
*/
|
||||
public function company(): belongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Company::class, 'company_employee');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user