It is very common that when developing some API we need to have a strictly formatted response for our client application. You can look in the official Laravel documents and find something like: return response()->json([ 'name' => 'Abigail', '...

Markdown supported · ⌘↵ to post
No responses yet.