首页  >  文章  >  后端开发  >  laravel 获得url 参数

laravel 获得url 参数

WBOY
WBOY原创
2016-07-29 09:12:131890浏览

<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>);
    }



}
</span></code>

控制器方法 参数 Request

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

以上就介绍了laravel 获得url 参数,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn