Javascript Set Array To Another Array Methods Laravel