📜  更新所有列文件 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:30.704000             🧑  作者: Mango

代码示例1
$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';
             }