mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
some new tables
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user