I'm using Laravel 5.4 and using laravel auth to register and login users. Its working good.
Problem: I'm creating users from admin panel as well. But the users created from admin panel are unable to login.
Login Form is same for both form (frontend register form and admin panel user registration form). and that login form works well for users who registered using frontend form not for other.
I'm encrypting the user password in bcrypt(123456) also I've tried Hash::make(123456).
Database table is same for both users (created from frontend and created from admin panel).
$user = new User();
$user->name = $request->input('name');
$user->email = $request->input('email');
$user->password = bcrypt(123456);
$user->save();
Error I'm getting on login: These credentials do no match our record
What I should do ?
\Hash::make('123456')
for the password – Nerea