check application approved test

This commit is contained in:
ilmedova 2022-12-05 15:58:21 +05:00
parent 44a613d9a5
commit 4c4942fea6
4 changed files with 72 additions and 4 deletions

View File

@ -0,0 +1,33 @@
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class ApplicationApproved extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->view('view.name');
}
}

View File

@ -0,0 +1,33 @@
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class ApplicationRefined extends Mailable
{
use Queueable, SerializesModels;
public $name;
public function __construct($name)
{
$this->name = $name;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$user['name'] = $this->name;
return $this->subject('Your application has been refined!')
->view('emails.notifications.application_refined', ['user' => $user]);
}
}

View File

@ -7,7 +7,7 @@
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class ApplicationApproved extends Notification implements ShouldQueue
class ApplicationApproved extends Notification
{
use Queueable;
@ -42,7 +42,8 @@ public function toMail($notifiable)
{
return (new MailMessage)
->from(config('settings.smtp_username'), env('MAIL_FROM_NAME', 'Birzha legalizasia'))
->view('emails.notifications.application_approved');
->greeting('Hello!')
->line('Your application has been approved!');
}
/**

View File

@ -7,7 +7,7 @@
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class ApplicationRefined extends Notification implements ShouldQueue
class ApplicationRefined extends Notification
{
use Queueable;
@ -42,7 +42,8 @@ public function toMail($notifiable)
{
return (new MailMessage)
->from(config('settings.smtp_username'), env('MAIL_FROM_NAME', 'Birzha legalizasia'))
->view('emails.notifications.application_refined');
->greeting('Hello!')
->line('Your application has been refined!');
}
/**