更新时间:2022-01-04 02:45:54
我遇到了同样的问题,对我来说有效的方法是将 .env 文件中的 APP_URL
参数设置为:
I faced the same issue and for me what worked was setting the APP_URL
parameter in the .env file as:
APP_URL=http://127.0.0.1:8000
因为这是我的 php artisan serve
也将服务于网站的相同端口,即
As that was the same port on which my php artisan serve
would also serve the website i.e.
Laravel development server started: http://127.0.0.1:8000