set config variables for env variables

This commit is contained in:
2026-02-12 18:07:23 +01:00
parent d3d7292b80
commit 7768e7a9e3
6 changed files with 26 additions and 15 deletions
+2 -2
View File
@@ -13,10 +13,10 @@ class SearchController extends Controller
public function __construct()
{
$this->client = new Client([
'api_key' => env('TYPESENSE_API_KEY'),
'api_key' => config('typesense_api_key'),
'nodes' => [
[
'host' => env('TYPESENSE_CONNECTION'),
'host' => config('typesense_connection'),
'port' => '8108',
'protocol' => 'http',
],
+2 -2
View File
@@ -14,10 +14,10 @@ class TypesenseService
public function __construct()
{
$this->client = new Client([
'api_key' => env('TYPESENSE_API_KEY'),
'api_key' => config('typesense_api_key'),
'nodes' => [
[
'host' => env('TYPESENSE_CONNECTION'),
'host' => config('typesense_connection'),
'port' => '8108',
'protocol' => 'http',
],