$users 是用户的集合。所以您不能访问 $users['id'] ;
$users
$users['id']
如果要从数据库中获取一个用户对象,则需要调用 first() 而不是 get()
first()
get()
可能的解决方案
$user = DB::table('users')->select('*')->where('uuid', $uuid)->first();