My model structure after model -> find($id);
protected 'attributes' =>
array (size=35)
'id' => string '1234134' (length=6)
'case' => string '123123' (length=7)
I want to update this model like this
foreach($input as $key => $value){
var_dump($key);
$case->($key)= $value;
}
$case -> save();
I tried like this but doesn't work
$reflection = new \ReflectionClass($case);
foreach($input as $key => $value){
var_dump($key);
$reflection->"$ke"y;
}