Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Notifications;
  4.  
  5. use Illuminate\Bus\Queueable;
  6. use Illuminate\Notifications\Notification;
  7. use Illuminate\Contracts\Queue\ShouldQueue;
  8. use Illuminate\Notifications\Messages\MailMessage;
  9.  
  10. class ConfirmUserEmail extends Notification
  11. {
  12. use Queueable;
  13.  
  14. public $token;
  15.  
  16. public function __construct($token){
  17. $this->token = $token;
  18. }
  19.  
  20. public function via($notifiable){
  21. return ['mail'];
  22. }
  23.  
  24. public function toMail($notifiable){
  25. return (new MailMessage)
  26. ->success()
  27. ->line('Almost Done!')
  28. ->line('Click Button Below to Verify Your Email Address')
  29. ->action('Activate Your Account', route('user.activate', $this->token));
  30. }
  31.  
  32. public function toArray($notifiable)
  33. {
  34. return [
  35. //
  36. ];
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement