1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

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)