Home  >  Article  >  Backend Development  >  PHP framework learning Laravel basic functions, laravel basic functions_PHP tutorial

PHP framework learning Laravel basic functions, laravel basic functions_PHP tutorial

WBOY
WBOYOriginal
2016-07-12 09:06:22852browse

PHP framework learning Laravel basic functions, laravel basic functions

Laravel5 does not have many functions (routing, middleware, blade templates...), it is just a route The function is really annoying. Although the router is very flexible to use, it is really a bit perverted. Here are the results of my research based on the official Laravel5 documentation. The Laravel5 I use is version 5.1. If there is anything wrong with the content below, please leave a message to CodeAnti, don’t let me go all the way to the bottom~~

1. Routing

修改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>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1065327.htmlTechArticlePHP framework learning Laravel basic functions, laravel basic functions Laravel5 has many functions (routing, middleware, blade template...), the routing function alone gives me a headache, although the road...
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