Home > Article > Backend Development > Laravel request parameter encapsulation?
Some mvc frameworks under java and .net platforms have the following features:
Form data:
<code>user.name:'admin', user.pwd:'123'</code>
mvc framework interface method
<code class="java">public String add(User user){ ... }</code>
The mvc framework will encapsulate the parameters in the request into the user parameter of the add method. Are there any related features in laravel? How to achieve?
Some mvc frameworks under java and .net platforms have the following features:
Form data:
<code>user.name:'admin', user.pwd:'123'</code>
mvc framework interface method
<code class="java">public String add(User user){ ... }</code>
The mvc framework will encapsulate the parameters in the request into the user parameter of the add method. Are there any related features in laravel? How to achieve?