add update api for safetyAndPrivacy

This commit is contained in:
2025-03-11 13:31:46 +03:30
parent f394f9cd0c
commit 44f604e4e6
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Http\Requests\V3\SafetyAndPrivacy;
use Illuminate\Foundation\Http\FormRequest;
class UpdateRequest 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 [
'axis_type_id' => 'required|integer|exists:axis_types,id',
];
}
}