new chatgpt module for api intergration

This commit is contained in:
Mark Gregory
2026-06-24 09:56:13 +01:00
parent c5335dc635
commit a42b5787b9
28 changed files with 1028 additions and 107 deletions
@@ -0,0 +1,30 @@
<?php
namespace Modules\ChatGPT\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreChatGptApiSettingRequest 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, mixed>
*/
public function rules(): array
{
return [
'name' => ['nullable', 'string', 'max:255'],
'api_key' => ['required', 'string', 'min:20', 'max:500'],
'is_active' => ['nullable', 'boolean'],
];
}
}