auditionadmin/app/Http/Controllers/TestController.php

27 lines
744 B
PHP

<?php
namespace App\Http\Controllers;
use App\Services\AuditionCacheService;
use App\Services\TabulationService;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
class TestController extends Controller
{
protected $scoringGuideCacheService;
protected $tabulationService;
public function __construct(AuditionCacheService $scoringGuideCacheService, TabulationService $tabulationService)
{
$this->scoringGuideCacheService = $scoringGuideCacheService;
$this->tabulationService = $tabulationService;
}
public function flashTest(Request $request)
{
$auditions = $this->tabulationService->getAuditionsWithStatus();
return view('test', compact('auditions'));
}
}