I using laravel 6 Suddenly when I'm trying to log in I on the email field.
These credentials do not match our records.
I have checked my database and entered email is correct and I am getting this error
also, I search a lot about this problem but I didn't get any solution
NOTE: I already tried this function but also it doesn't work
public function setPasswordAttribute($password)
{
$this->attributes['password'] = \Hash::make($password);
}
Login Controller
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class LoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Controller
|--------------------------------------------------------------------------
|
| This controller handles authenticating users for the application and
| redirecting them to your home screen. The controller uses a trait
| to conveniently provide its functionality to your applications.
|
*/
use AuthenticatesUsers;
/**
* Where to redirect users after login.
*
* @var string
*/
protected $redirectTo = RouteServiceProvider::HOME;
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('guest')->except('logout');
}
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire