i wanna set value with key to an arrau like chaning
I just want to know how Laravel did it
this is laravel code of eloquent update query
$variable=Model::find(3);
$variable->columnname="name";
$variable->save();
this is my code
$variable=["name"=>"Eric","email"=>"example@gmail.com"];
$variable->name="jack";
$variable->email="testest@gmail.com";
print_r($variable); or $query="update tblname ..."
It doesn't work and it give me error
how this system work