fix spesialities index
This commit is contained in:
@@ -39,6 +39,8 @@ class SpecialityController extends Controller
|
||||
->where('speciality_id', $specialityId)
|
||||
->get();
|
||||
|
||||
abort_if(count($doctors) === 0, Response::HTTP_NOT_FOUND, 'Data Doctor tidak ditemukan');
|
||||
|
||||
foreach ($doctors as $key => $doctor) {
|
||||
$specialisName = $doctor->speciality->name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user