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

Немного изменил код в контроллерах

This commit is contained in:
ashen-1-dev
2020-12-17 02:40:47 +07:00
parent e0bc94e346
commit 654947873e
3 changed files with 11 additions and 9 deletions

View File

@@ -44,7 +44,7 @@ class TaskController extends Controller
}
public function store(TaskRequest $request) {
$teacherId = 1; // Auth()->id();
$teacherId = auth()->user()->id;
$banktaskName = BankTask::find($request->banktask_id)->name;
$banktaskSubject = BankTask::find($request->banktask_id)->subject_id;
$newTask = Task::create($request->all() + ['teacher_id' => $teacherId