carbon date comparison code example
Example 1: carbon subdays
$users = Users::where('status_id', 'active')
->where( 'created_at', '>', Carbon::now()->subDays(30))
->get();
Example 2: carbon compare same date
$date1->toDateString() == $date2->toDateString()