added relationship for company and user

This commit is contained in:
jack
2018-05-26 09:37:56 +08:00
parent ba827bf27d
commit ff4e7764d5
3 changed files with 13 additions and 0 deletions
+5
View File
@@ -54,4 +54,9 @@ class User extends Authenticatable implements JWTSubject
return $this->hasOne('App\UserVerification', 'user_id');
}
public function company()
{
return $this->hasOne('App\Company');
}
}