Files
services_core/app/Http/Requests/Material/TransferMaterialRequest.php
T
2026-06-23 16:04:37 +07:00

32 lines
717 B
PHP

<?php
namespace App\Http\Requests\Material;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class TransferMaterialRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'barcode_id' => 'required|string',
'from_user_id' => 'required|integer',
'to_user_id' => 'required|integer',
];
}
}