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);