📅  最后修改于: 2022-03-11 15:05:16.399000             🧑  作者: Mango
$users = DB::table('mails')->distinct('mark')->count('mark');
if ($users == 1){
$mark = Mails::all();
$mark->mark = '0';
$mark->save();
echo 'reset values to 0';
}else{
echo 'DIferent values';
}