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>