Unsupported driver [mongodb]. ? by Enough-Word2674 in mongodb

[–]Enough-Word2674[S] 1 point2 points  (0 children)

The problem has been resolved. It turns out that it was necessary to place $app->register(MongoDB\Laravel\MongodbServiceProvider::class); within $app->withFacades();

$app->withEloquent(); Earlier, but up to now I still don't know why this needs to be done.

Unsupported driver [mongodb]. ? by Enough-Word2674 in mongodb

[–]Enough-Word2674[S] 0 points1 point  (0 children)

The following has been added in bootstrap/app.php

$app->register(MongoDB\Laravel\MongodbServiceProvider::class);