Fixes and cleanup for user pending/registration calls
This commit is contained in:
29
app/Mail/UserRejected.php
Normal file
29
app/Mail/UserRejected.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class UserRejected extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
private $subject,
|
||||
$user;
|
||||
|
||||
public function __construct(User $user, $subject=null)
|
||||
{
|
||||
$this->subject = $subject ?: 'Your registration has been denied';
|
||||
$this->user = $user;
|
||||
}
|
||||
|
||||
public function build()
|
||||
{
|
||||
return $this->markdown('emails.user.rejected')
|
||||
->subject($this->subject)
|
||||
->with(['user' => $this->user]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user