public function profile(Request $request) { $user = $request->user(); echo $user['name'] . '登录成功!'; }