Files
online.tbbank.gov.tm-larave…/app/Modules/ApiAuth/Requests/AuthLoginRequest.php
2025-03-12 23:46:17 +05:00

33 lines
793 B
PHP

<?php
namespace App\Modules\ApiAuth\Requests;
use Illuminate\Foundation\Http\FormRequest;
class AuthLoginRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<int, string>|string>
*/
public function rules(): array
{
return [
/**
* Phone number to authenticate
*
* @example 65707012
*/
'phone' => ['required', 'integer', 'between:61000000,71999999'],
/**
* User's password
*
* @example MahmytAllaberdiyevPassword
*/
'password' => ['required', 'string', 'max:255'],
];
}
}