auditionadmin/app/Http/Controllers/TestController.php

25 lines
577 B
PHP

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