$row[2] // ],[ // 'name' => $row[2], // 'status' =>1 // ]); // } if ($row[5] == null) { $avatar = ''; }else { $avatar = $row[5]; } return new Docter([ // 'name' => $row[0], 'phone' => $row[1], // 'qualification_id' => $qualification_id, 'card_photo' => $row[3], 'practice' => $row[4], 'avatar' => $avatar, 'is_then' => 1, 'type' => 0 ]); } }