'required|string|min:3|max:255', 'users' => 'nullable|array', 'users.*.id' => 'required|exists:users,id', 'gitlab_project_id' => 'nullable|unique:sites,gitlab_project_id', 'url_re7' => 'nullable|url', 'url_prod' => 'nullable|url' ]; } /** * Get custom attributes for validator errors. * * @return array */ public function attributes(): array { return [ 'name' => trans('Nom du site'), 'users' => trans('Utilisateurs associés au site'), 'users.*.id' => trans('Élément parmis les Utilisateurs associés au site'), 'gitlab_project_id' => trans('ID du dépôt Gitlab'), 'url_re7' => trans('Url de RECETTE'), 'url_prod' => trans('Url de prod') ]; } }