Laravel 警告和致命错误中要求打开失败

Abh*_*bey 3 php laravel

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';
Run Code Online (Sandbox Code Playgroud)

PHP*_*Per 5

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

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