We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87b43a8 commit 3a44fa2Copy full SHA for 3a44fa2
README.md
@@ -12,6 +12,7 @@ Register provider in `./config/app.php`:
12
13
```php
14
<?php
15
+
16
return [
17
'providers' => [
18
Illuminate\Support\ServiceProvider\MongoDbServiceProvider::class,
@@ -43,7 +44,7 @@ use Psr\Container\ContainerInterface;
43
44
use Sokil\Mongo\ClientPool;
45
46
Route::get('/', function (ContainerInterface $container) {
- /** @var \Sokil\Mongo\ClientPool $clientPool */
47
+ /** @var ClientPool $clientPool */
48
$clientPool = $container->get(ClientPool::class);
49
$database = $clientPool->get('connect1');
50
});
0 commit comments