Преглед на файлове

Update RelationshipController

Daniel Supernault преди 6 години
родител
ревизия
b10e03d092
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      app/Http/Controllers/Settings/RelationshipSettings.php

+ 5 - 1
app/Http/Controllers/Settings/RelationshipSettings.php

@@ -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'));
 	}
 
 }