我正在使用lumen 5.1.*
,但每当我使用Auth时都会抛出错误
AuthManager.php中的ErrorException第16行:缺少参数1 Illuminate \ Auth \ AuthManager :: createDriver(),调用 D:\ xampp \ htdocs \ project \ vendor \ illuminate \ support \ Manager.php在线 87并定义
任何人都可以帮我解决这个问题。我需要在流明中使用Auth::user()
public function postLogin(Request $request){
if (Auth::attempt(['email' => $request->email, 'password' => $request->password])) {
// Authentication passed...
echo "success";
echo "<pre>";
print_r(Auth::user()->toArray());
} else {
echo "sorry erorr occured";
}
}