1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 02:44:31 +00:00

Модуль Задания(fix some bugs)

This commit is contained in:
ashen-1-dev
2020-12-11 00:23:29 +07:00
parent dda49ceb17
commit 854ffc83c8
7 changed files with 39 additions and 6 deletions

View File

@@ -33,7 +33,8 @@ class AnswerToTaskController extends Controller
$answer->deadline = $task->deadline;
$studentFile = TaskFile::where([
['user_id', '=', '2'], // Auth::id()
['task_id', '=', $task->id]
['task_id', '=', $task->id],
['review', '=', 0]
])
->get(['id','name', 'type', 'url']);
$teacherFile = TaskFile::where([