Files
portal-api/app/Http/Requests/Package/OsVersionRequest.php
T
2025-07-28 17:02:13 +07:00

34 lines
779 B
PHP

<?php
namespace App\Http\Requests\Package;
use Illuminate\Foundation\Http\FormRequest;
class OsVersionRequest 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, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'version' => 'required',
'module_host_id' => 'required',
'os_group_id' => 'required',
'os_id' => 'required',
'template_id' => 'nullable',
'status' => 'required'
];
}
}