route('banned_ip')); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'ip' => [ 'required', 'ip', Rule::unique('banned_ips', 'ip') ->ignore($this->route('banned_ip')->ip, 'ip') ], ]; } }