First Steps with In-Memory API: GET index and show Methods

Giovanni Pace

Description

Let's build the first two methods of a Laravel in-memory REST API: index, which returns the full list, and show, which retrieves a single record by ID — all logic in PHP arrays with no database.