country flags added and country switcher added

This commit is contained in:
Benjamin Takats
2022-11-30 16:59:14 +01:00
parent 3d317ef84d
commit b45b04fa29
526 changed files with 35618 additions and 25 deletions

View File

@@ -8,6 +8,24 @@ use Livewire\Component;
class SearchCities extends Component
{
public Country $country;
public string $c = 'de';
public function rules()
{
return [
'c' => 'required',
];
}
public function mount()
{
$this->c = $this->country->code;
}
public function updatedC($value)
{
return to_route('search.cities', ['country' => $value]);
}
public function render()
{