<commit_before><?php

namespace App\Mail;

use App\Service;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\DB;

class ServicesList extends Mailable
{
    use Queueable, SerializesModels;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        $tableheader = \App\Qualification::where('isservicedefault', true)->get();
        //get all services of next 2 month
        $services = Service::where([['date','>=', DB::raw('CURDATE()')], ['date', '<=', \Carbon\Carbon::today()->addMonth(2)]])->orderBy('date')->with('positions.qualification')->get();

        return $this->subject('Wachplan MES')->view('email.serviceslist')->with([
            'tableheader' => $tableheader,
            'services' => $services,
        ]);
    }
}
<commit_msg>fix servicelist queue #20<commit_after><?php

namespace App\Mail;

use App\Service;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\DB;

class ServicesList extends Mailable implements ShouldQueue
{
    use Queueable, SerializesModels;

    public $tableheader;
    public $services;
    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->tableheader = \App\Qualification::where('isservicedefault', true)->get();
        //get all services of next 2 month
        $this->services = Service::where([['date','>=', DB::raw('CURDATE()')], ['date', '<=', \Carbon\Carbon::today()->addMonth(2)]])->orderBy('date')->with('positions.qualification')->get();
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->subject('Wachplan MES')->view('email.serviceslist')->with([
            'tableheader' => $this->tableheader,
            'services' => $this->services,
        ]);
    }
}

{'fraction_non_alphanumeric': 0.16559633027522935, 'fraction_numerical': 0.0027522935779816515, 'mean_word_length': 2.901610017889088, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2194702', 'n_tokens_mistral': 653, 'n_tokens_neox': 660, 'n_words': 131}