protected function authenticated(Request $request, $user)
{
//
$user = User::findOrFail($user);
return $user;
//$arruser = $user->toArray();
/* if($user->status==0){
Auth::logout();
return redirect('login')->with('verify_info','Verify First');
}*/
}
$ user returns --->
id 54
name "Rasul"
email "[email protected]"
verify_token "BiOF8L8DJb"
status 0
created_at "2017-07-26 09:39:46"
updated_at "2017-07-26 09:39:46"
Problem is when i m trying to get value of status using
$ user-> status它表示此集合实例上不存在Property [status]。
当你做return $user
你得到一个集合你如何通过qazxswpoi获得一个对象,然后获得属性状态。
像这样的东西:
first()