這里詳細(xì)描述問題
Windows10,系統(tǒng),phpstudy環(huán)境,php8.2.9,使用composer安裝數(shù)據(jù)庫一開始提示缺少openssl,后來一頓操作解決了,但是依然無法使用數(shù)據(jù)庫,提示:“Error: Class "Illuminate\Database\Capsule\Manager" not found in D:\WWW\mycode\webman\webman\vendor\workerman\webman-framework\src\support\Db.php:33” ,完全按照官方手冊操作,請問要怎么解決這個問題?
這里粘代碼
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");
}
這里粘貼報錯
Error: Class "Illuminate\Database\Capsule\Manager" not found in D:\WWW\mycode\webman\webman\vendor\workerman\webman-framework\src\support\Db.php:33
這里粘貼截圖
這里寫具體的系統(tǒng)環(huán)境相關(guān)信息
Windows10,系統(tǒng),phpstudy環(huán)境,php8.2.9,webman應(yīng)該是1.5.0