File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
app/Livewire/Pages/Articles
resources/views/components/articles Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,10 @@ public function render(): View
24
24
$ query ->where ('id ' , $ this ->tag ->id );
25
25
})
26
26
->withCount (['views ' , 'reactions ' ])
27
- ->scopes (['published ' , 'notPinned ' ])
28
27
->orderByDesc ('sponsored_at ' )
29
28
->orderByDesc ('published_at ' )
29
+ ->published ()
30
+ ->notPinned ()
30
31
->paginate ($ this ->perPage ),
31
32
])->title ($ this ->tag ->name );
32
33
}
Original file line number Diff line number Diff line change 8
8
: asset (' images/socialcard.png' )
9
9
@endphp
10
10
11
- <article class =" relative group " wire:key =" {{ $article -> slug () } }" >
11
+ <article class =" relative" wire:key =" {{ $article -> slug () } }" >
12
12
<div class =" relative w-full" >
13
13
<img
14
14
src =" {{ $media } }"
You can’t perform that action at this time.
0 commit comments