這里詳細(xì)描述問(wèn)題
Windows10,系統(tǒng),phpstudy環(huán)境,php8.2.9,使用composer安裝數(shù)據(jù)庫(kù)一開(kāi)始提示缺少openssl,后來(lái)一頓操作解決了,但是依然無(wú)法使用數(shù)據(jù)庫(kù),提示:“Error: Class "Illuminate\Database\Capsule\Manager" not found in D:\WWW\mycode\webman\webman\vendor\workerman\webman-framework\src\support\Db.php:33” ,完全按照官方手冊(cè)操作,請(qǐng)問(wèn)要怎么解決這個(gè)問(wèn)題?
這里粘代碼
public function db(Request $request)
{
$default_uid = 1;
$uid = $request->get('uid', $default_uid);
$name = Db::table('users')->where('uid', $uid)->value('username');
return response("hello $name");
}
這里粘貼報(bào)錯(cuò)
Error: Class "Illuminate\Database\Capsule\Manager" not found in D:\WWW\mycode\webman\webman\vendor\workerman\webman-framework\src\support\Db.php:33
這里粘貼截圖
這里寫(xiě)具體的系統(tǒng)環(huán)境相關(guān)信息
Windows10,系統(tǒng),phpstudy環(huán)境,php8.2.9,webman應(yīng)該是1.5.0