Skip to content

Instantly share code, notes, and snippets.

@erenhatirnaz
Last active November 3, 2021 05:52
Show Gist options
  • Save erenhatirnaz/86f53fe2946971e5e8350704ee8d2496 to your computer and use it in GitHub Desktop.
Save erenhatirnaz/86f53fe2946971e5e8350704ee8d2496 to your computer and use it in GitHub Desktop.
AuthController@login
/**
* @OA\RequestBody(
* request="LoginRequest",
* required=true,
* @OA\JsonContent(
* required={"email", "password"},
* @OA\Property(property="email", type="string", description="E-mail address", example="john.doe@example.com"),
* @OA\Property(property="password", type="string", description="Password", example="123456"),
* )
* )
*/
class LoginRequest extends FormRequest
{
public function rules()
{
return [
'email' => 'required|email',
'password' => 'required'
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment