Answer the question
In order to leave comments, you need to log in
Why does Laravel get the error Column not found: 1054 Unknown column 'id' when using the save() method?
public function subTaskReductedSentKind1($sub_id, Request $request ){
session(['definitions'=>$request->input('definitions')]);
session(['words'=>$request->input('words')]);
session(['correct_words'=>$request->input('correct_words')]);
$sub_task = Task_1st_kind::where('sub_task', $sub_id)->first();
$sub_task->definitions = session()->get('definitions');
$sub_task->words = session()->get('words');
$sub_task->correct_words = session()->get('correct_words');
$sub_task->save();
return redirect()->route('Admin');
}
Answer the question
In order to leave comments, you need to log in
It's most likely under the hood.
$sub_task = Task_1st_kind::where('sub_task', $sub_id)->first();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question