You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @mts88 thank you for the quick response, update and support. I hope I provided good report here.
Describe the bug
Got error when running artisan cli. Maybe because the format of config/gridfs changed from array to string.
I am using barry ide-helper package and run
php artisan ide-helper:generate
Log
Symfony\Component\Debug\Exception\FatalThrowableError : Argument 1 passed to Mts88\MongoGrid\Services\MongoClient::hasDsnString() must be of the type array, null given, called in /vendor/mts88/mongogrid/src/Services/MongoClient.php on line 77
at /vendor/mts88/mongogrid/src/Services/MongoClient.php:91
87| * Check if exists dsn url and if is valid
88| *
89| * @input array $config Array with config
90| */
> 91| protected function hasDsnString(array $config)
92| {
93| return isset($config['dsn']) && ! empty($config['dsn']);
94| }
95|
Exception trace:
1 Mts88\MongoGrid\Services\MongoClient::hasDsnString()
/vendor/mts88/mongogrid/src/Services/MongoClient.php:77
2 Mts88\MongoGrid\Services\MongoClient::connectDB()
/vendor/mts88/mongogrid/src/Services/MongoClient.php:37
Laravel:
5.7.26 MongoDB:
3.6
The text was updated successfully, but these errors were encountered:
Hi @msyahidin from the logs seems that config is null. Have you run composer dump-autoload ? Can you post your config/gridfs.php and config/database.php?
Hi @mts88 thank you for the quick response, update and support. I hope I provided good report here.
Describe the bug
Got error when running artisan cli. Maybe because the format of config/gridfs changed from array to string.
I am using barry ide-helper package and run
Log
Laravel:
MongoDB:
The text was updated successfully, but these errors were encountered: