mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
Исправление кода в контроллерах
This commit is contained in:
@@ -16,9 +16,10 @@ class AnswerToTaskController extends Controller
|
||||
$input = $request->all();
|
||||
|
||||
|
||||
$answer = AnswerToTask::create($input+
|
||||
['task_id' => $task->id,
|
||||
'student_id' => auth()->user()->id]);
|
||||
$answer = AnswerToTask::create($input+ [
|
||||
'task_id' => $task->id,
|
||||
'student_id' => $request->student_id
|
||||
]); //auth()->user()->id]
|
||||
return response()->json($answer, 201);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user