Files
bogazici-api/app/Http/Requests/Comment/UpdateCommentRequest.php
2026-03-27 10:41:54 +03:00

35 lines
689 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Http\Requests\Comment;
use Illuminate\Foundation\Http\FormRequest;
class UpdateCommentRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
/**
* @return array<string, array<int, string>>
*/
public function rules(): array
{
return [
'is_approved' => ['sometimes', 'boolean'],
'admin_reply' => ['nullable', 'string', 'max:1000'],
];
}
/**
* @return array<string, string>
*/
public function messages(): array
{
return [
'admin_reply.max' => 'Admin yanıtı en fazla 1000 karakter olabilir.',
];
}
}