Ejemplo n.º 1
0
 public function getByMailMdp($email, $mdp)
 {
     return Representant::where('MAIL_REP', '=', $email)->where('MDP_REP', '=', $mdp)->get();
 }
 public function getById($idRep)
 {
     $rep = new Representant();
     $result = $rep->getById($idRep);
     return Response()->json($result->toArray(), 200);
 }
Ejemplo n.º 3
0
 public function getByLoginMdp($email, $mdp)
 {
     $rep = new Representant();
     $representant = $rep->getByMailMdp($email, $mdp);
     return Response()->json($representant, 200);
 }