\Carbon:: laravel code example
Example 1: carbon laravel use
<?php
use Carbon\Carbon;
Example 2: carbon subdays
$users = Users::where('status_id', 'active')
->where( 'created_at', '>', Carbon::now()->subDays(30))
->get();
<?php
use Carbon\Carbon;
$users = Users::where('status_id', 'active')
->where( 'created_at', '>', Carbon::now()->subDays(30))
->get();