Answers for "testing laravel api page 404 not found"

PHP
1

laravel api form request validation 404

Set an "Accept": "application/json" Request Header
 -- OR --
force the default response behavior by sepcifying the response() method
in your own CustomFormRequest class:
// -- example -- //
public function response(array $errors)
{
    // Always return JSON.
    return response()->json($errors, 422);
}
Posted by: Guest on February-20-2021

Code answers related to "testing laravel api page 404 not found"

Browse Popular Code Answers by Language