1
0
Fork 0

Update RelationshipController

This commit is contained in:
Daniel Supernault 2019-06-12 19:10:45 -06:00
parent 59340dee69
commit b10e03d092
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 5 additions and 1 deletions

View File

@ -18,7 +18,11 @@ trait RelationshipSettings
public function relationshipsHome()
{
return view('settings.relationships.home');
$profile = Auth::user()->profile;
$following = $profile->following()->simplePaginate(10);
$followers = $profile->followers()->simplePaginate(10);
return view('settings.relationships.home', compact('profile', 'following', 'followers'));
}
}