I am newbie to laravel I am using updateorcreate for model. But this is showing error MassAssignmentException end_time In Model Tasktimelog I am using protected $guarded = array(); Here is what I am Doing.
$endtask= Tasktimelog::updateOrCreate(
[
'task_id' => $taskid,
'action_type'=>4,
'user_id'=> auth()->id()
],
[
'end_time' => $endtimeis,
'total_time' => request('totalseconds'),
'remark' => request('remark'),
'actual_complete_time' => $diff,
'project_id' => $getprojectid->project_id
]);
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2itj3CO
via IFTTT
Aucun commentaire:
Enregistrer un commentaire