コード例 #1
0
 public function verify($username, $password)
 {
     $credentials = ['email' => $username, 'password' => $password];
     #dd(Auth::getProvider()->retrieveByCredentials($credentials)->id);
     #dd('cliente password verifier');
     if (Auth::cliente()->once($credentials)) {
         #dd(Auth::cliente()->get()->id);
         return Auth::cliente()->get()->id;
     }
     /*if (Auth::once($credentials)) {
           return Auth::user()->id;
       }*/
     return false;
 }