UsermailRespoitory
I want the days should be added inside addDays() The days i will get frm my database
public function create() 
    {
        $users = User::where('user_type', 2)->get();
        $auto_email_templates=AutoEmailTemplate::all()->pluck('days');
        foreach ($users as $user) {
           if( $user->created_at > Carbon::now()->addDays($days)){
                if ($user->created_at < Carbon::now()) //signup
                {    
                    return false;
                }
                    Mail::to($user)->send(new Automail($template));
                    return true;
           }
}
 
     
    