check application approved test
This commit is contained in:
parent
44a613d9a5
commit
4c4942fea6
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
@ -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!');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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!');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue