Laravel Replace Array Object Php Example