->validate( laravel unique two code example
Example 1: unique check two clolumn in laravel validation
'data.ip' => ['required', 'unique:servers,ip,'.$this->id.',NULL,id,hostname,'.$request->input('hostname')]
Example 2: unique check two clolumn in laravel validation
'data.ip' => ['required', 'unique:servers,ip,'.$this->id.','.$request->input('id').',id,hostname,'.$request->input('hostname')]