Thursday, April 13, 2017

My username and password for log in works on live website but they are not working on local db?

My username and password for log in works on live website but they are not working on local db.I downloaded remote db many times but I still don`t know where is the problem.

if(Auth::attempt(['email'=>$request->username,'password'=>$request->password]) || Auth::attempt(['name'=>$request->username,'password'=>$request->password])){

     return redirect()->intended('/admin');
   }

   else{
       return redirect()->back()->with('error', 'False combination of username/password');
   }

And I checked,connection with db works fine.Laravel Framework version 5.0.35



via VBProgramming

Advertisement