See response()
response()
When a controller returns an array, response gets encoded and header application/json is output.
application/json
Empty response will always result in HTTP code 202.
202
Last updated 2 years ago