簡體   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