made the question titles on test show view expandable to show question and options

This commit is contained in:
mwalbeck 2016-10-27 17:24:41 +02:00
parent 12f6d58099
commit d2aaf8addc
4 changed files with 77 additions and 14 deletions

View file

@ -28,7 +28,7 @@ class AdministrativeTestController extends Controller
{
$this->authorize('view', $test);
$questions = $test->questions;
$questions = Question::where("test_id", $test->id)->with("options")->get();
return view('tests.show', compact('test'), compact('questions'));
}