public void AnalysisData()
{
ProgressForm PF = new ProgressForm();
PF.UpdateProgress(50);
PF.ShowDialog(this);
}
var typingId = 0;
$('#m').keydown(function() {
$('#typing_message').show();
clearTimeout(typingId);
typingId = setTimeout(function() {
$('#typing_message').hide();
}, 3000);
});
var timerId = setTimeout(...);
clearTimeout(timerId);
$messages = [
'data.ip.unique' = 'Given ip and hostname are not unique',
];
Validator::make($data, [
'data.ip' => [
'required',
Rule::unique('servers')->where(function ($query) use($ip,$hostname) {
return $query->where('ip', $ip)
->where('hostname', $hostname);
}),
],
],
$messages
);