📅  最后修改于: 2022-03-11 14:57:30.704000             🧑  作者: 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';
}