Download app/Jobs/SendPasswordResetEmail.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/pnacorp/magicai/resolve/main/app/Jobs/SendPasswordResetEmail.php
- Command line
-
hf download hf://pnacorp/magicai/app/Jobs/SendPasswordResetEmail.php
-
curl -L -o SendPasswordResetEmail.php https://huggingface.co/pnacorp/magicai/resolve/main/app/Jobs/SendPasswordResetEmail.php
1.05 kB
| namespace App\Jobs; | |
| use App\Mail\PasswordResetEmail; | |
| use App\Models\EmailTemplates; | |
| use App\Models\Setting; | |
| use App\Models\User; | |
| use Illuminate\Bus\Queueable; | |
| use Illuminate\Contracts\Queue\ShouldQueue; | |
| use Illuminate\Foundation\Bus\Dispatchable; | |
| use Illuminate\Queue\InteractsWithQueue; | |
| use Illuminate\Queue\SerializesModels; | |
| use Illuminate\Support\Facades\Mail; | |
| class SendPasswordResetEmail implements ShouldQueue | |
| { | |
| use Dispatchable; | |
| use InteractsWithQueue; | |
| use Queueable; | |
| use SerializesModels; | |
| protected $user; | |
| protected $settings; | |
| protected $template; | |
| /** | |
| * Create a new job instance. | |
| */ | |
| public function __construct(User $user) | |
| { | |
| $this->user = $user; | |
| $this->settings = Setting::first(); | |
| $this->template = EmailTemplates::where('id', 3)->first(); | |
| } | |
| /** | |
| * Execute the job. | |
| */ | |
| public function handle(): void | |
| { | |
| Mail::to($this->user->email)->send(new PasswordResetEmail($this->user, $this->settings, $this->template)); | |
| } | |
| } | |