This commit is contained in:
Benjamin Takats
2022-12-04 19:42:27 +01:00
parent e68c6a0e5f
commit 29f3ff3256
29 changed files with 664 additions and 6 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Http\Livewire\Frontend;
use App\Models\Tag;
use Livewire\Component;
class SearchByTag extends Component
{
public string $country = 'de';
public function render()
{
return view('livewire.frontend.search-by-tag', [
'tags' => Tag::query()
->with([
'courses.lecturer',
])
->withCount([
'courses',
])
->get(),
]);
}
}