Files
2026-02-02 17:27:33 +07:00

32 lines
700 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',
'os_group_id' => 'required',
'template_id' => 'nullable',
'status' => 'required'
];
}
}