don't forget to type: "programming language" ;)
$nbofsale = DB::table('st_nsales') ->where('brand_id', $brandid) ->where('eodata', '>', Carbon::now()->startOfDay()); ->get();
the c++ replacement???