[英]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.