[英]Fatal error: Unknown: Failed opening required Error in Laravel 5.2 Auth
[英]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.