2021-09-17 23:48:30 +02:00
|
|
|
<?php
|
|
|
|
|
2021-11-07 21:57:22 +01:00
|
|
|
namespace App\Api\v1\Requests;
|
2021-09-17 23:48:30 +02:00
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
2021-11-13 13:36:34 +01:00
|
|
|
use Illuminate\Support\Facades\Auth;
|
2021-09-17 23:48:30 +02:00
|
|
|
|
2021-09-21 22:44:25 +02:00
|
|
|
class TwoFAccountBatchRequest extends FormRequest
|
2021-09-17 23:48:30 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Determine if the user is authorized to make this request.
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function authorize()
|
|
|
|
{
|
2021-11-13 13:36:34 +01:00
|
|
|
return Auth::check();
|
2021-09-17 23:48:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the validation rules that apply to the request.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function rules()
|
|
|
|
{
|
|
|
|
return [
|
2021-10-08 13:19:18 +02:00
|
|
|
'ids' => 'required|string|regex:/^\d+(,{1}\d+)*$/i',
|
2021-09-17 23:48:30 +02:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|