Files
KanbanGit/app/Http/Requests/UpdateRepositoryConnectionRequest.php
T
Eric Peters 1c355c20b4
linter / quality (pull_request) Successful in 1m13s
tests / ci (8.4) (pull_request) Failing after 1m15s
DEleted function in request and changed the way the controller uses it,
2026-04-03 16:50:00 +02:00

33 lines
767 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'],
];
}
}