whereOr('name',$u['name'])->whereOr('nickname',$u['name'])->find(); $id = $user['id']; return redirect((string) url('user/home',['id'=>$id])); } }