Home > Backend Development > PHP Tutorial > laravel gets url parameters

laravel gets url parameters

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-29 09:12:13
Original
1928 people have browsed it

<code><span><?php</span><span>namespace</span><span>App</span>\<span>Http</span>\<span>Controllers</span>;

<span>use</span><span>App</span>\<span>Article</span>;
<span>use</span><span>Carbon</span>\<span>Carbon</span>;
<span>use</span><span>App</span>\<span>Http</span>\<span>Requests</span>\<span>Request</span>;
<span>use</span><span>Illuminate</span>\<span>Support</span>\<span>Facades</span>\<span>DB</span>;

<span><span>class</span><span>ArticleController</span><span>extends</span><span>Controller</span>
{</span><span>public</span><span><span>function</span><span>demo</span><span>(Request <span>$request</span>)</span>
    {</span><span>//        return $request->all();</span><span>return</span><span>$request</span>->input(<span>"aa"</span>);
    }



}
</code>
Copy after login

Controller method parameters Request

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces laravel to obtain url parameters, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

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
Latest Issues
Request desktop background
From 1970-01-01 08:00:00
0
0
0
laravel request processing
From 1970-01-01 08:00:00
0
0
0
PHP sends query request
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template