If I return an object:
return Response::json([ \'hello\' => $value ]);
the status code will be 200. How can I change it to 201, with
I prefer the response helper myself:
return response()->json(['message' => 'Yup. This request succeeded.'], 200);