php 工匠无法服务:无法打开流:第 21 行的 /home/ 中没有这样的文件或目录



我运行php手工修补

然后我的vs代码变成错误

我研究一个实现

laravel5:chdir((:没有这样的文件或目录(错误号2(

我正在做必要的更改代码,我被退出了,因为我的代码可以做composer更新。

但当它再次启动时,仍然出现了相同的错误。

这是错误

[Thu Mar 24 06:18:27 2022] PHP Fatal error:  require_once(): 
Failed opening required 
'/home/john/Documents/api4/api4/public/index.php' 
(include_path='.:/usr/share/php') in 

/home/john/Documents/api4/api4/server.php,第21行

this is on line 21 at server.php
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php' ;

这是修补

'alias' => [
//
],

关于修补程序,我仍然不知道该代码的功能如何。我只想制作弹出窗口,并从我打开的页面中学习,以指导我编写代码。

你用过那个代码吗?我的意思是:php手工修补?

希望你能用简单的方式解释我,并为我的问题指明方向。

感谢

您必须首先通过运行composer的安装命令来添加vendor目录:

composer install

更新后,您的作曲家包:

composer update

最新更新