I'm getting this error :
IlluminateDatabaseQueryException
SQLSTATE[22P02]: Invalid text representation: 7 ERROR: malformed array literal: "["5","7"]" DETAIL: "[" must introduce explicitly-specified array dimensions
whenever i'm trying to store the array input result to my postgres
database.
This the lines of code in my controller:
$iitems=$request->input('parcel_items', []);
$parcel->update(['parcel_items_sku' => $iitems]);
question from:https://stackoverflow.com/questions/65860460/dealing-with-malfromed-array-errors-in-laravel