some new tables

This commit is contained in:
Benjamin Takats
2022-12-01 00:52:07 +01:00
parent bfcbef9854
commit 0efbcd1faa
10 changed files with 135 additions and 18 deletions

View File

@@ -3,11 +3,13 @@
namespace App\Http\Livewire\Frontend;
use App\Models\Country;
use Illuminate\Support\Facades\Route;
use Livewire\Component;
class Header extends Component
{
public Country $country;
public $currentRouteName;
public string $c = 'de';
public function rules()
@@ -19,12 +21,13 @@ class Header extends Component
public function mount()
{
$this->currentRouteName = Route::currentRouteName();
$this->c = $this->country->code;
}
public function updatedC($value)
{
return to_route('search.cities', ['country' => $value]);
return to_route($this->currentRouteName, ['country' => $value]);
}
public function render()