app/Service/Hospital/HospitalService.php
//get all the doctors who work in the hospital according to her name
get all the doctors who work in the hospital according to her name
get all the doctors who work in the hospital according to her name
public function hospitalsDoctor($hospital_name)
    {
      return  Hospital::with('doctor')
                       ->where("name","like","%".$hospital_name."%")
                       ->get();
    }
public function hospitalsDoctor ( $ hospital_name ) { return Hospital :: with ( 'doctor' ) -> where ( " name " , " like " , " % " . $ hospital_name . " % " ) -> get ( ) ; }
get all the doctors who work in the hospital according to her name
get all the doctors who work in the hospital according to her name