Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel form request validation api

public function response(array $errors)
{
    // Always return JSON.
    return response()->json($errors, 422);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #form #request #validation #api
ADD COMMENT
Topic
Name
9+7 =