Add Length_of_work_year

This commit is contained in:
R
2022-09-23 09:49:45 +07:00
parent bae91e6120
commit 33db51bf65
3 changed files with 6 additions and 3 deletions

View File

@@ -50,9 +50,10 @@ class DoctorResource extends JsonResource
'award' => $this->meta->award ?? '',
'work_experience' => $this->meta->work_experience ?? '',
'keilmuan' => $this->meta->keilmuan ?? '',
'length_of_work_year' => rand(1, 10),
'description' => $this->meta->description ?? '',
'practices' => $practices,
'rating' => rand(350, 500) / 100,
'rating' => rand(88, 100),
];
}
}

View File

@@ -34,8 +34,9 @@ class PractitionerRoleToDoctorDetailResource extends JsonResource
'award' => $this->meta->award ?? '',
'work_experience' => $this->meta->work_experience ?? '',
'keilmuan' => $this->meta->keilmuan ?? '',
'length_of_work_year' => rand(1, 10),
'description' => $this->meta->description ?? '',
'rating' => rand(350, 500) / 100,
'rating' => rand(88, 100),
'is_chat_available' => $this->is_chat_available,
'is_video_available' => $this->is_video_available,

View File

@@ -52,7 +52,8 @@ class PractitionerRoleToDoctorResource extends JsonResource
'avatar_url' => asset('images/default-doctor-avatar.png'),
'hospital' => $organization,
'speciality' => $speciality,
'rating' => rand(350, 500) / 100,
'rating' => rand(88, 100),
'length_of_work_year' => rand(1, 10),
'is_chat_available' => $this->is_chat_available,
'is_video_available' => $this->is_video_available,