From d8f3895f99eae8af94f3ae0cd7c5e2ce298a7f9e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 24 Nov 2024 16:13:59 +1100 Subject: [PATCH] Add additonal filesystem for docker --- app/Http/Controllers/SearchController.php | 5 +++-- config/filesystems.php | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index f61371ecd2..42c6943dda 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -42,7 +42,7 @@ class SearchController extends Controller $user = auth()->user(); $this->clientMap($user); - + $this->invoiceMap($user); return response()->json([ @@ -64,7 +64,7 @@ class SearchController extends Controller $elastic = ClientBuilder::fromConfig(config('elastic.client.connections.default')); $params = [ - 'index' => 'clients,invoices,client_contacts', + 'index' => 'clients,invoices,client_contacts,quotes,expenses,credits,recurring_invoices,vendors,vendor_contacts,purchase_orders', 'body' => [ 'query' => [ 'bool' => [ @@ -94,6 +94,7 @@ class SearchController extends Controller 'clients' => $this->clients, 'client_contacts' => $this->client_contacts, 'invoices' => $this->invoices, + 'quotes' => $this->quotes, 'settings' => $this->settingsMap(), ], 200); diff --git a/config/filesystems.php b/config/filesystems.php index 0a3277d25d..aa776486cd 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -64,6 +64,23 @@ return [ 'throw' => false, ], + 'debian_docker' => [ + 'driver' => 'local', + 'root' => storage_path('app/public/storage'), + 'url' => env('APP_URL').'/storage', + 'permissions' => [ + 'file' => [ + 'public' => 0664, + 'private' => 0600, + ], + 'dir' => [ + 'public' => 0775, + 'private' => 0700, + ], + ], + 'throw' => false, + ], + 'public' => [ 'driver' => 'local', 'root' => public_path('storage'),