Home  >  Article  >  php教程  >  PHP框架学习之Laravel基本功能,laravel基本功能

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

WBOY
WBOYOriginal
2016-06-13 08:52:301125browse

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>

 

Statement:
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