79466895

Date: 2025-02-25 14:34:56
Score: 1.5
Natty:
Report link

I think you mean laravel orm? here's the laravel way of doing this query:

$model_name = ModelName::findOrFail($id);
$model_name->update(['key1'=>'val1','key2'=>'val2']);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: issam abbas