'required', 'l' => 'required', ]; } public function mount() { $this->l = Cookie::get('lang') ?: config('app.locale'); } public function updated($property, $value) { $this->validate(); Cookie::queue('lang', $this->l, 60 * 24 * 365); return to_route('welcome', ['c' => $this->c, 'l' => $this->l]); } public function render() { Cookie::queue('lang', $this->l, 60 * 24 * 365); return view('livewire.frontend.welcome', [ 'countries' => Country::get(), ])->layout('layouts.guest', [ 'SEOData' => new SEOData( image: asset('img/screenshot.png') ) ]); } }