Home > Backend Development > PHP Tutorial > laravel 没有取得post中的参数,有遇到过吗?

laravel 没有取得post中的参数,有遇到过吗?

WBOY
Release: 2016-06-06 20:26:21
Original
1987 people have browsed it

post类型的url请求,laravel后台 请求地址?后的参数$request->input能获取,但表单请求体则不行,有碰到过吗

回复内容:

post类型的url请求,laravel后台 请求地址?后的参数$request->input能获取,但表单请求体则不行,有碰到过吗

获取参数还是参数值?

获取参数值,

<code>echo \Input::get('key');</code>
Copy after login

<code>debug=true;</code>
Copy after login

Input::all();

看看有没有错误

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template