Feat: CRUD вопросов (начало)

 QuestionController (resource)
 QuestionPolicy
 Маршруты: /admin/tests/{test}/questions
 Blade-шаблоны: index, create (с JS для динамических ответов)
 Поддержка типов: single_choice, multiple_choice, input, matching
 Интеграция в show теста

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
mirivlad
2026-03-26 15:45:14 +08:00
co-authored by Qwen-Coder
parent fe61dcf4b7
commit a34c2e2812
7 changed files with 298 additions and 1 deletions
+65
View File
@@ -0,0 +1,65 @@
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class QuestionController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(string $id)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(string $id)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, string $id)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(string $id)
{
//
}
}