Home > php教程 > php手册 > body text

PHP框架学习之Laravel基本功能,laravel基本功能

WBOY
Release: 2016-06-13 08:52:30
Original
1124 people have browsed it

PHP框架学习之Laravel基本功能,laravel基本功能

Laravel5的功能不是一般的多(路由,中间件,blade模版...),单是一个路由功能就让哥很蛋疼,虽说路由使用起来变得很灵活,但真他妹的有点变态了。这里是我照着Laravel5官方文档研究的成果,本人使用的Laravel5是5.1版本。下面内容如果有不对的请留言CodeAnti,别让小弟一条道走到黑~~

 1.路由

修改app/Http/routes.<span>php文件
<br />
http</span>:<span>//</span><span>localhost/laravel5/public/index.php/</span>
Route::get('/',<span>function</span><span>(){
     </span><span>return</span> 'CodeAnti'<span>; 
});<br /><br /><br /></span>
Copy after login

 

Related labels:
php
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!