Files
dockergprompt/app/Http/Requests/PromptTemplate/UpdatePromptTemplateRequest.php
2026-10-07 20:04:10 -03:00

35 lines
867 B
PHP
Executable File

<?php
declare(strict_types=1);
namespace App\Http\Requests\PromptTemplate;
use Illuminate\Foundation\Http\FormRequest;
class UpdatePromptTemplateRequest 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 [
'name' => ['required', 'string', 'max:255'],
'description' => ['nullable', 'string', 'max:1000'],
'category' => ['nullable', 'string', 'max:255'],
'template_data' => ['required', 'string'],
'is_public' => ['boolean'],
];
}
}