Skip to content

Commit 70bbcd6

Browse files
authored
Add tags icons (#98)
* 🚧 wip * Add some tag icon
1 parent 1a38c90 commit 70bbcd6

28 files changed

+380
-3072
lines changed

app/Http/Livewire/Articles/Browse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function validSort(string $sort): bool
4949

5050
public function render(): View
5151
{
52-
$articles = Article::with('tags')
52+
$articles = Article::with(['tags', 'user'])
5353
->withCount(['views', 'reactions'])
5454
->published()
5555
->notPinned()
@@ -60,7 +60,7 @@ public function render(): View
6060
$query->published();
6161
})->orderBy('name')->get();
6262

63-
$selectedTag = Tag::where('name', $this->tag)->first();
63+
$selectedTag = Tag::where('slug', $this->tag)->first();
6464

6565
if ($this->tag) {
6666
$articles->forTag($this->tag);

composer.lock

Lines changed: 139 additions & 136 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)