First Commit

This commit is contained in:
marco
2026-09-01 09:22:30 -03:00
commit a43ae23eb4
407 changed files with 36138 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
namespace App\Http\Requests\AiProvider;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class UpdateAiProviderRequest 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' => ['sometimes', 'string', 'max:255', Rule::unique('ai_providers', 'name')->ignore($this->route('ai_provider'))],
'slug' => ['sometimes', 'string', 'max:255', Rule::unique('ai_providers', 'slug')->ignore($this->route('ai_provider'))],
'description' => ['nullable', 'string'],
'api_key' => ['sometimes', 'string', 'max:255'],
'base_url' => ['sometimes', 'url', 'max:255'],
'is_active' => ['boolean'],
'config' => ['nullable', 'array'],
];
}
}