'datetime', ]; public function getJWTIdentifier() { return $this->getKey(); } public function getJWTCustomClaims() { return []; } public function userRole() { return $this->setConnection('mysql') ->hasOne(UserRole::class); } public function userRoleFromProject() { return $this->setConnection('mysql_proj') ->hasOne(UserRoleFromProject::class, 'user_id', 'id'); } public function craftMan() { return $this->setConnection('mysql_proj')->hasMany(CraftMan::class, 'ref_foreman', 'id'); } }