VerifyNotify.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace App\Notifications;
  3. use Illuminate\Bus\Queueable;
  4. use Illuminate\Contracts\Queue\ShouldQueue;
  5. use Illuminate\Notifications\Messages\MailMessage;
  6. use Illuminate\Notifications\Notification;
  7. class VerifyNotify extends Notification
  8. {
  9. use Queueable;
  10. /**
  11. * Create a new notification instance.
  12. *
  13. * @return void
  14. */
  15. public function __construct()
  16. {
  17. //
  18. }
  19. /**
  20. * Get the notification's delivery channels.
  21. *
  22. * @param mixed $notifiable
  23. * @return array
  24. */
  25. public function via($notifiable)
  26. {
  27. return ['mail'];
  28. }
  29. /**
  30. * Get the mail representation of the notification.
  31. *
  32. * @param mixed $notifiable
  33. * @return \Illuminate\Notifications\Messages\MailMessage
  34. */
  35. public function toMail($notifiable)
  36. {
  37. return (new MailMessage)
  38. ->subject('이메일 인증 완료')
  39. ->greeting('안녕하세요!')
  40. ->line('회원님의 이메일이 정상적으로 인증되었습니다.')
  41. ->line(config('company_name') . '를 이용해주셔서 감사합니다.');
  42. }
  43. /**
  44. * Get the array representation of the notification.
  45. *
  46. * @param mixed $notifiable
  47. * @return array
  48. */
  49. public function toArray($notifiable)
  50. {
  51. return [
  52. //
  53. ];
  54. }
  55. }