SyntaxFix
Write A Post
Hire A Developer
Questions
Use subDays() method:
subDays()
$users = Users::where('status_id', 'active') ->where( 'created_at', '>', Carbon::now()->subDays(30)) ->get();