From e9612666e37f8575ee6cc66739ce648d4a540ba0 Mon Sep 17 00:00:00 2001 From: Ovidiu U Date: Tue, 7 Apr 2026 14:38:03 +0100 Subject: [PATCH] feat: wire FuelFinder to home route, replacing static homepage --- app/Livewire/Public/FuelFinder.php | 2 ++ resources/views/layouts/guest.blade.php | 9 +++++++++ routes/web.php | 3 ++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 resources/views/layouts/guest.blade.php diff --git a/app/Livewire/Public/FuelFinder.php b/app/Livewire/Public/FuelFinder.php index 49f879b..5f0630a 100644 --- a/app/Livewire/Public/FuelFinder.php +++ b/app/Livewire/Public/FuelFinder.php @@ -5,9 +5,11 @@ namespace App\Livewire\Public; use Illuminate\Http\Client\ConnectionException; use Illuminate\Support\Facades\Http; use Illuminate\View\View; +use Livewire\Attributes\Layout; use Livewire\Attributes\Validate; use Livewire\Component; +#[Layout('layouts.guest')] class FuelFinder extends Component { #[Validate('required|string', message: 'Please enter a postcode, town or city.')] diff --git a/resources/views/layouts/guest.blade.php b/resources/views/layouts/guest.blade.php new file mode 100644 index 0000000..ab52d83 --- /dev/null +++ b/resources/views/layouts/guest.blade.php @@ -0,0 +1,9 @@ + + + + @include('partials.head') + + + {{ $slot }} + + diff --git a/routes/web.php b/routes/web.php index 3bcd731..6f1a0dd 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,9 +1,10 @@ name('home'); +Route::get('/', FuelFinder::class)->name('home'); Route::get('/stations', StationSearch::class)->name('stations.search');