Sunday, May 21, 2017

Laravel: how to update records values coming as arrow

I am new to Laravel and I need to update records coming as array from a form.

    $a = $request->id;
    $b = $request->val;      

Now I need to update the records

   Details::find($b)->update(['detail'=>$a]);

The script above obviously does not work...



via Daniel

Advertisement