Debugging

This commit is contained in:
2018-06-06 21:37:31 +02:00
parent 98a8b8d0af
commit eb1ba45f3b

View File

@@ -65,7 +65,7 @@ class PagesController extends Controller
//Iterate over all tipps //Iterate over all tipps
foreach ($tipps as $tipp) { foreach ($tipps as $tipp) {
$score = 0; $score = 0;
$match = $matches->find($tipp->matchid)->get(); $match = $matches->find($tipp->matchid)->first();
dd($match); dd($match);
$diffmatch = abs($match->resulta - $match->resultb); $diffmatch = abs($match->resulta - $match->resultb);
$difftipp = abs($tipp->resulta - $tipp->resultb); $difftipp = abs($tipp->resulta - $tipp->resultb);