feat: wire FuelFinder to home route, replacing static homepage

This commit is contained in:
Ovidiu U
2026-04-07 14:38:03 +01:00
parent 41a2cc5f43
commit e9612666e3
3 changed files with 13 additions and 1 deletions

View File

@@ -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.')]

View File

@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
@include('partials.head')
</head>
<body class="font-sans antialiased">
{{ $slot }}
</body>
</html>

View File

@@ -1,9 +1,10 @@
<?php
use App\Livewire\Public\FuelFinder;
use App\Livewire\Public\StationSearch;
use Illuminate\Support\Facades\Route;
Route::view('/', 'welcome')->name('home');
Route::get('/', FuelFinder::class)->name('home');
Route::get('/stations', StationSearch::class)->name('stations.search');