Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class MedicoRepository implements MedicoRepositoryInterface{
- public function hospitais($id){
- $h = array();
- $medico = Medico::find($id);
- foreach($medico->postos as $posto)
- $h[] = $posto->hospital->id;
- return Hospital::find( array_unique($h) );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment