update deploy
This commit is contained in:
34
app/Http/Requests/Comment/UpdateCommentRequest.php
Normal file
34
app/Http/Requests/Comment/UpdateCommentRequest.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?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.',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user