public function response(){

//响应json
/*$data = [
'errCode'=>0,
'errMsg' =>'success',
'data' => 'yxh',
];
return response()->json($data);*/

//重定向
//return redirect('Hello');
//return redirect('Hello')->with('message','yxh');
//return redirect()->action('UserController@Hello')->with('message','yxh');
//return redirect()->route('Hello')->with('message','yxh');

//返回上一个页面
//return redirect()->back();
}

相关文章:

  • 2021-05-17
  • 2022-12-23
  • 2021-07-06
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
  • 2022-12-23
  • 2021-05-24
  • 2021-12-17
相关资源
相似解决方案