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');