Laravel Return Object Instead Of Array Methods In Typescript