繁体   English   中英

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

[英]failed opening required in laravel warning and fatal error

laravel 在(文件路径)中给出错误未能打开所需的 thrn(文件路径)(include_path='C:\xampp\php\PEAR')

//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

第 1 步:运行:Composer Install 进行新安装。

运行:现有安装的 Composer 更新。

第 2 步:制作.env 文件

第三步:运行:Php artisan migrate(制作数据库)

第 4 步:运行:Php 工匠密钥:生成

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM