1、在nginx的配置文件中配置到laravel的public文件夹下。
2、在location \ { 里面加入优雅连接: try_files $uri $uri/ /index.php?$query_string;
3.测试,看是否有错误,如果有laravel.log错误,解决办法:
A: php artisan cache:clear
B:chmod -R 777 storage
C:composer dump-autoload