1、得要PHP7.1以上版本,不然出错。电脑PHP版本,用cmd 查看 PHP -v 命令
电脑低版本的PHP,升级到高版本,
cmd 重命名
rename .example.env .env
二
去除public,将public目录下的index.php移到根目录,并修改index.php路径
require __DIR__ . '/vendor/autoload.php';
根目录.htaccess修改成
<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>