Update discover controller

This commit is contained in:
Daniel Supernault 2018-09-21 23:44:33 -06:00
parent 809423914f
commit 5ab2fe1090
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class DiscoverController extends Controller
->whereVisibility('public')
->where('profile_id', '!=', $pid)
->whereNotIn('profile_id', $following)
->withCount(['comments', 'likes'])
->orderBy('created_at', 'desc')
->simplePaginate(21);