bigCalc = $bigCalc; } public function flashTest() { $entries = Entry::forSeating()->with('student')->where('audition_id', 19)->get(); $rows = []; foreach ($entries as $entry) { try { $totalScore = $this->bigCalc->calculate('seating', $entry)[0]; } catch (TabulationException $ex){ $totalScore = '--'; } $rows[] = [ 'name' => $entry->student->full_name(), 'totalScore' => $totalScore, ]; } // try { // $test = $this->bigCalc->calculate('seating', Entry::find(1061))[0]; // } catch (TabulationException $ex) { // dd($ex); // } return view('test', compact('rows')); } }