Answers for "laravel 500 error show json response exception"

PHP
1

laravel json response with error code

return Response::json([
    'hello' => $value
], 201); // Status code here
Posted by: Guest on March-05-2020
0

laravel response json status 500

return response()->json(['message' => 'error message'], 500);
Posted by: Guest on August-20-2020

Browse Popular Code Answers by Language