Laravel5使用总结(随笔)
模板应用:php artisan make:controller TestController
路由404问题:
Apache在.htaccess文件添加
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Nginx在配置文件添加
location / {
try_files $uri $uri/ /index.php?$query_string;
}