remove square brackets from json Laravel