Last active
November 3, 2021 05:52
-
-
Save erenhatirnaz/86f53fe2946971e5e8350704ee8d2496 to your computer and use it in GitHub Desktop.
AuthController@login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @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