From eb1ba45f3b277e2436ef50fd665ba8cf5e229b2f Mon Sep 17 00:00:00 2001 From: structix Date: Wed, 6 Jun 2018 21:37:31 +0200 Subject: [PATCH] Debugging --- tippspiel/app/Http/Controllers/PagesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tippspiel/app/Http/Controllers/PagesController.php b/tippspiel/app/Http/Controllers/PagesController.php index 739ce79..83df5b8 100644 --- a/tippspiel/app/Http/Controllers/PagesController.php +++ b/tippspiel/app/Http/Controllers/PagesController.php @@ -65,7 +65,7 @@ class PagesController extends Controller //Iterate over all tipps foreach ($tipps as $tipp) { $score = 0; - $match = $matches->find($tipp->matchid)->get(); + $match = $matches->find($tipp->matchid)->first(); dd($match); $diffmatch = abs($match->resulta - $match->resultb); $difftipp = abs($tipp->resulta - $tipp->resultb);