Laravel: preg_replace(): Parameter mismatch, pattern is a string while replacement is an array

后端 未结 2 1290
感动是毒
感动是毒 2021-01-13 11:57

I want to save my results in the database but im getting an error exception.

In my view I have a radio button(array) that gets the result of each student which is

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-13 12:45

    I had a similar error, where using

    $attendance->fill(array with non-existing columns);
    

    sets a non-existing column value, so on calling

    $attendance->save();
    

    afterwards, it will throw that error

提交回复
热议问题