Skip to content

Commit 6565df2

Browse files
authored
Show first featured projects
1 parent 02b8916 commit 6565df2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/Livewire/Projects.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ private function projects(): LengthAwarePaginator
5454
return Project::query()
5555
->wherePublished()
5656
->when($this->tag, fn ($query) => $query->withAnyTags($this->tag))
57+
->orderByDesc('is_featured')
5758
->latest()
5859
->paginate(perPage: 12);
5960
}

0 commit comments

Comments
 (0)