コード例 #1
0
ファイル: Representant.php プロジェクト: WizzerOmega/webstock
 public function getByMailMdp($email, $mdp)
 {
     return Representant::where('MAIL_REP', '=', $email)->where('MDP_REP', '=', $mdp)->get();
 }
コード例 #2
0
 public function getById($idRep)
 {
     $rep = new Representant();
     $result = $rep->getById($idRep);
     return Response()->json($result->toArray(), 200);
 }
コード例 #3
0
 public function getByLoginMdp($email, $mdp)
 {
     $rep = new Representant();
     $representant = $rep->getByMailMdp($email, $mdp);
     return Response()->json($representant, 200);
 }