Files
einundzwanzig-portal/app/Http/Livewire/Frontend/Library.php
Benjamin Takats b9265c3ec9 new library added
2022-12-12 19:17:09 +01:00

28 lines
641 B
PHP

<?php
namespace App\Http\Livewire\Frontend;
use App\Models\Country;
use Livewire\Component;
class Library extends Component
{
public Country $country;
public $currentTab = 'Alle';
protected $queryString = [
'currentTab' => ['except' => 'alle'],
];
public function render()
{
return view('livewire.frontend.library', [
'libraries' => \App\Models\Library::get()
->prepend(\App\Models\Library::make([
'name' => 'Alle',
])),
]);
}
}