/**
  * Create a new profile composer.
  *
  * @param  UserRepository  $users
  * @return void
  */
 public function __construct(DonnerController $donnerController)
 {
     // Dependencies automatically resolved by service container...
     global $problems, $allProblems;
     $problems = $donnerController->getProblemsData();
     $allProblems = $donnerController->getAllProblems();
 }
 /**
  * Create a new profile composer.
  *
  * @param  UserRepository  $users
  * @return void
  */
 public function __construct(DonnerController $donnerController)
 {
     // Dependencies automatically resolved by service container...
     global $problems, $allProblems, $currentUserProblems, $ratingUserNameObject;
     $problems = $donnerController->getProblemsData();
     $allProblems = $donnerController->getAllProblems();
     $currentUserProblems = $donnerController->getCurrentUserProblems();
     $ratingUserNameObject = DB::table('problems')->join('donate', 'problems.id', '=', 'donate.problemId')->where('userId', Auth::user()->user_id)->groupBy('donorId')->get();
 }