- Laravel-mongodb Version: 4.0
- PHP Version: 8.2
- Database Driver & Version: mongo 5
Description:
Steps to reproduce
- Run php artisan tinker with php8.2
- run command :
DB::connect();
- Error will pop up
Expected behaviour
It should be showing like connection success or failure instead of undefined method
Actual behaviour
php artisan tinker
Psy Shell v0.11.21 (PHP 8.2.10 — cli) by Justin Hileman
DB::connect();
Error Call to undefined method MongoDB\Database::connect().
Logs:
Insert log.txt here (if necessary)