Код: Выделить всё
Illuminate \ Database \ QueryException
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user.deleted_at'
in 'where clause' (SQL: select * from `user` where `user`.`deleted_at` is
null and `username` = john limit 1)
< /code>
Итак, я отправляю следующие данные в мой маршрут входа в систему: username = John & password = test < /code> < /p>
Но когда я выполняю следующий код в my routes.php < /strong> я получаю ошибку, показывающую выше.Route::post('login', function()
{
$credentials = array(
"username" => Input::get("username"),
"password" => Input::get("password")
);
if (Auth::attempt($credentials))
{
return Redirect::intended('dashboard');
}
else {
return Redirect::to('login');
}
});
Подробнее здесь: https://stackoverflow.com/questions/216 ... eird-error