Can't login after registration, says "invalid password"
I've been building an application usign laravel, it was all going alright and auth system was working correctly, but after i did a migrate:fresh command using artisan i can create an account but i can't login using it.
I have not changed anything on laravel's default auth system and the only change i made since it was working was add a model/controller/migration named "Posts" and i tried removing it and anything related to it but yet nothing changed.
I believe it has something to do with the users generated hash because if i put the hash from UserFactory in the database which is "$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi" i can login using "password" as password and everything works fine.
I'm not getting an error or anything else except that credentials don't work.
the function gets called during registration but even if i change the 'password' field to smthg for ex.
'password' => 'Password123' it still saves a hash and not 'Password123' so i believe there is smthg changing the password field after registration
Hmm changing
Hash::make($data['password']),
to simply
$data['password']
fixed it, idk why this happened even tho i didn't do any updates or anything and it worked only a few hours ago
also to mention that Hash::make($data['password']) was there by default
No the password is being hashed somewhere else before saved in database
https://i.imgur.com/cgJi7ze.png
I'm also wondering myself why is this so when just some hours ago everything was fine with Hash::make in "create" function