Update StoryController

This commit is contained in:
Daniel Supernault 2020-01-08 18:05:20 -07:00
parent b07d5ca3a0
commit 523d90cdec
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -106,7 +106,7 @@ class StoryController extends Controller
$stories = Story::with('profile')
->whereIn('profile_id', $following)
->groupBy('profile_id')
->groupBy(['id', 'profile_id'])
->where('expires_at', '>', now())
->orderByDesc('expires_at')
->take(9)