I have some post about auth attempt failure but my case seems to be different. Still in dev phase so my password is in plain text. I try to login but i keep getting false and so redirected back to login page.
The error message says username/password does not match but dd reveals that both email and password are correct.
What could be responsible for this failure? PS: it's my first time working with laravel
web.php
Route::post('/login', 'AuthController@authenticate'); Route::get('/', 'PostController@index'); AuthController
public function auth() { //dd($request); // attempt to login the user if (! auth()->attempt(request(['email', 'password']))) { return back()->withErrors([ 'message' => 'Username/Password does not macth' ]); } return redirect('/'); } PostController
public function index() { $posts = Post::latest()->limit(3)->get(); return view('post.index', compact('posts')); }