/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $tests = Test::latest()->get(); return view('tests.index', compact('tests')); }