gpt4 book ai didi

php - Laravel 警告和 fatal error 中要求打开失败

转载 作者:行者123 更新时间:2023-12-04 14:45:42 25 4
gpt4 key购买 nike

laravel 给出错误打开所需的 thrn (file path)(include_path='C:\xampp\php\PEAR')in (file path)

//my index file code id shown below


//require __DIR__.'public/vendor/autoload.php';
require_once $_SERVER['DOCUMENT_ROOT'].'public/vendor/autoload.php';

/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/

//$app = require_once __DIR__.'/public/bootstrap/app.php';
$app = require_once (realpath($_SERVER["DOCUMENT_ROOT"]).'/public/bootstrap/app.php';

最佳答案

如果这是全新安装,则需要运行 composer install .

如果它是现有安装(供应商文件夹存在)运行 composer update .

关于php - Laravel 警告和 fatal error 中要求打开失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58449603/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com