skip to Main Content

i Have Error with making the Auth Logic in Laravel

this is my login logic when i try it give me error down blow public function login(Request $request) { $request->validate([ 'Email'=>'required', 'password'=> 'required' ]); $agent = DB::table('agents')->where('Email',$request->Email)->first(); if($request->password == $agent->password || Hash::check($request->password,$agent->password)) { Auth::login($agent); return redirect()->route('agent.index'); } else { return…

VIEW QUESTION
Back To Top
Search