Sep 5, 2018 · 1 min read
Lumen handles the API resources automatically. But, if you’re trying to modify the data, then (new MyResource($resource)->toArray($request) will unpack the data for you.
Lumen handles the API resources automatically. But, if you’re trying to modify the data, then (new MyResource($resource)->toArray($request) will unpack the data for you.