backend registration step 1

This commit is contained in:
CheeSiong
2020-10-24 10:31:52 +08:00
parent ec4dc051eb
commit eac5ffda7b
48 changed files with 8960 additions and 4 deletions
+8
View File
@@ -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');
}
}