ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/www/ecommerce-website/website/app/Jobs/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/www/ecommerce-website/website/app/Jobs/SendEmailJob.php

<?php

namespace App\Jobs;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeUnique;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Mail;

class SendEmailJob implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

    protected $mail_to, $data;

    /**
     * Create a new job instance.
     *
     * @return void
     */
    public function __construct($mail_to, $data)
    {
        $this->mail_to = $mail_to;
        $this->data = $data;
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        Mail::to($this->mail_to)->send($this->data);
    }
}

Zerion Mini Shell 1.0