Files
KanbanGit/app/Http/Requests/UpdateRepositoryConnectionRequest.php
Twyco 23a66852a6
tests / ci (8.4) (push) Has been cancelled
linter / quality (push) Has been cancelled
pint format
2026-04-11 16:24:21 +02:00

31 lines
765 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class UpdateRepositoryConnectionRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return $this->user() !== null;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'provider_repository_id' => ['required', 'string', 'max:255'],
'user_git_connection_id' => ['required', 'integer', 'exists:user_git_connections,id'],
];
}
}