22 lines
492 B
PHP
22 lines
492 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Api\V1\Auth;
|
|
|
|
use Illuminate\Contracts\Validation\ValidationRule;
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class AuthLoginRequest extends FormRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array<string, ValidationRule|array|string>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'phone_number' => ['required', 'integer', 'between:61000000,71999999'],
|
|
];
|
|
}
|
|
}
|