18 lines
421 B
PHP
18 lines
421 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Bo\Sites;
|
|
|
|
class UpdateSiteRequest extends StoreSiteRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return array_merge(parent::rules(), [
|
|
'gitlab_project_id' => 'nullable|unique:sites,gitlab_project_id,' . $this->route('site')->id . ',id',
|
|
]);
|
|
}
|
|
}
|