laravel count

49

$affected = DB::table('users')
              ->where('id', 1)
              ->update(['votes' => 1]);
use Illuminate\Support\Facades\DB;
 
$users = DB::table('users')->count();
use Illuminate\Support\Facades\DB;
 
$users = DB::table('users')->count();
 

Comments

Submit
0 Comments