public function filter() { $dns = json_decode(INPUT::get('data')); foreach ($dns as $val) { Proverka::where('domain', $val)->update(['filter' => true]); } return redirect('proverka')->setStatusCode(200); }