RelationshipSettings.php 584 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Http\Controllers\Settings;
  3. use App\AccountLog;
  4. use App\EmailVerification;
  5. use App\Instance;
  6. use App\Media;
  7. use App\Profile;
  8. use App\User;
  9. use App\UserFilter;
  10. use App\Util\Lexer\PrettyNumber;
  11. use Auth, Cache, DB;
  12. use Illuminate\Http\Request;
  13. trait RelationshipSettings
  14. {
  15. public function relationshipsHome()
  16. {
  17. $profile = Auth::user()->profile;
  18. $following = $profile->following()->simplePaginate(10);
  19. $followers = $profile->followers()->simplePaginate(10);
  20. return view('settings.relationships.home', compact('profile', 'following', 'followers'));
  21. }
  22. }