22 lines
399 B
PHP
22 lines
399 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Request;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class StoreCommentRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'body' => ['required', 'string', 'max:5000'],
|
|
'is_internal' => ['nullable', 'boolean'],
|
|
];
|
|
}
|
|
}
|