record update issue...
can some help me $this->record->update(['status', $value]); not working...
but $this->record->status = $value;
$this->record->save(); working
9 Replies
fillable 🤔 ?
yes
protected $fillable = [
'name',
'email',
'password',
'education',
'status',
];
$this->record->update(['status' => $this->status])
Maybe
If you set the status public property on a component
Can you share the complete code where you are using $this->record->update.. ?
because your code is incorrrect, look at the update method you are doing , for a status with it's value you need to push it with => so
$this->record->update(['status' => $value]);
hah you are right 🙂 I'm starting to feel like I need to buy glasses
Don’t worry, I’ve been there myself 😂
me too!