public function getByLoginMdp($email, $mdp) { $rep = new Representant(); $representant = $rep->getByMailMdp($email, $mdp); return Response()->json($representant, 200); }