From bfe246ab44876c82ac0f32eedb5729cc4710a461 Mon Sep 17 00:00:00 2001 From: josh Date: Sat, 4 Apr 2026 09:50:11 +1000 Subject: [PATCH] Added search box --- app/Http/Middleware/HandleInertiaRequests.php | 1 + config/app.php | 1 + .../js/Components/FlightsGoneBy/AirlineSearchBox.vue | 8 ++++++-- resources/js/Types/types.d.ts | 3 ++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/Http/Middleware/HandleInertiaRequests.php b/app/Http/Middleware/HandleInertiaRequests.php index 4d5d572..fd0a01c 100644 --- a/app/Http/Middleware/HandleInertiaRequests.php +++ b/app/Http/Middleware/HandleInertiaRequests.php @@ -31,6 +31,7 @@ class HandleInertiaRequests extends Middleware { return [ ...parent::share($request), + 'logo_api_url' => config('app.logo_api_url'), 'auth' => [ 'user' => $request->user(), 'isLoggedIn' => $request->user() !== null, diff --git a/config/app.php b/config/app.php index c49ccf1..1077f9d 100644 --- a/config/app.php +++ b/config/app.php @@ -55,6 +55,7 @@ return [ 'url' => env('APP_URL', 'http://localhost'), 'domain' => env('APP_DOMAIN', 'flightsgoneby.com'), 'api_domain' => env('API_DOMAIN', 'api.flightsgoneby.com'), + 'logo_api_url' => env('LOGO_API_URL', 'https://api.flightsgoneby.com'), /* |-------------------------------------------------------------------------- | Application Timezone diff --git a/resources/js/Components/FlightsGoneBy/AirlineSearchBox.vue b/resources/js/Components/FlightsGoneBy/AirlineSearchBox.vue index 9dc0847..801b0fc 100644 --- a/resources/js/Components/FlightsGoneBy/AirlineSearchBox.vue +++ b/resources/js/Components/FlightsGoneBy/AirlineSearchBox.vue @@ -1,12 +1,16 @@