我運行 php artisan tinker
然后我的 vs 代碼變成錯誤
我研究了一個實施
laravel5: chdir(): 沒有這樣的檔案或目錄 (errno 2)
我做了更改代碼所需的操作,我退出了,導致我的代碼可以進行作曲家更新。
但是當它再次啟動時,它仍然得到同樣的錯誤。
這是錯誤
[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 artisan tinker?
希望您以簡單的方式向我解釋并從我的問題中給出方向。
謝謝
uj5u.com熱心網友回復:
您必須首先通過運行作曲家的安裝命令來添加供應商目錄:
composer install
之后更新您的作曲家包:
composer update
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/448540.html
