Advertisement
Guest User

Untitled

a guest
May 29th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Mail;
  4.  
  5. use App\User;
  6. use Illuminate\Bus\Queueable;
  7. use Illuminate\Contracts\Queue\ShouldQueue;
  8. use Illuminate\Mail\Mailable;
  9. use Illuminate\Queue\SerializesModels;
  10.  
  11. class Product extends Mailable
  12. {
  13. use Queueable, SerializesModels;
  14.  
  15. public $user;
  16.  
  17. public function __construct(User $user)
  18. {
  19. $this->user = $user;
  20. }
  21.  
  22. /**
  23. * Build the message.
  24. *
  25. * @return $this
  26. */
  27. public function build()
  28. {
  29. return $this->view('emails.product');
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement