where('idprestador', $id)->first(); } public function getPrestadoresActivos() { return $this ->where('status', 0) ->findAll(); } function countPrestadoresActivos() { return $this ->where('status', 0) ->countAllResults(); } }