23 lines
483 B
PHP
23 lines
483 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Actions\Tabulation\CalculateEntryScore;
|
|
use App\Models\Entry;
|
|
|
|
class TestController extends Controller
|
|
{
|
|
protected CalculateEntryScore $bigCalc;
|
|
public function __construct(CalculateEntryScore $bigCalc)
|
|
{
|
|
$this->bigCalc = $bigCalc;
|
|
}
|
|
|
|
public function flashTest()
|
|
{
|
|
$test = $this->bigCalc->calculate('seating', Entry::find(1127))['vinita'];
|
|
|
|
return view('test', compact('test'));
|
|
}
|
|
}
|