made the question titles on test show view expandable to show question and options
This commit is contained in:
parent
12f6d58099
commit
d2aaf8addc
4 changed files with 77 additions and 14 deletions
app/Http/Controllers
|
@ -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'));
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue