Skip to content

Commit

Permalink
Load qdrant config from env
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasSkywalker committed Jun 21, 2024
1 parent b74c72d commit ef4016f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/QdrantClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Codefabrik\QdrantLaravel\Endpoints\Collection;
use Codefabrik\QdrantLaravel\Endpoints\Point;
use Codefabrik\QdrantLaravel\Endpoints\Search;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Http;

class QdrantClient
Expand All @@ -18,9 +17,9 @@ class QdrantClient

public function __construct()
{
$this->qdrantHost = Config::get('host');
$this->qdrantPort = Config::get('port');
$this->qdrantCollection = Config::get('collection');
$this->qdrantHost = config('qdrant.host');
$this->qdrantPort = config('qdrant.port');
$this->qdrantCollection = config('qdrant.collection');
}

public function collection()
Expand Down

0 comments on commit ef4016f

Please sign in to comment.