add auth api
This commit is contained in:
25
app/Modules/ApiAuth/Requests/AuthLoginRequest.php
Normal file
25
app/Modules/ApiAuth/Requests/AuthLoginRequest.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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|string>
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
/**
|
||||
* Phone number to authenticate
|
||||
* @var int
|
||||
* @example 65707012
|
||||
*/
|
||||
'phone_number' => ['required', 'integer', 'between:61000000,71999999'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user