AppEmailVerificationNotification.php 1015 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace App\Notifications;
  3. use Carbon\Carbon;
  4. use Illuminate\Bus\Queueable;
  5. use Illuminate\Notifications\Notification;
  6. use Illuminate\Notifications\Messages\MailMessage;
  7. use Illuminate\Support\Facades\URL;
  8. use App\Mail\EmailManager;
  9. use Auth;
  10. use App\Models\User;
  11. class AppEmailVerificationNotification extends Notification
  12. {
  13. use Queueable;
  14. public function __construct()
  15. {
  16. }
  17. public function via($notifiable)
  18. {
  19. return ['mail'];
  20. }
  21. public function toMail($notifiable)
  22. {
  23. $array['view'] = 'emails.app_verification';
  24. $array['subject'] = translate('Email Verification');
  25. $array['content'] = translate('Please enter the code:'.$notifiable->verification_code);
  26. return (new MailMessage)
  27. ->view('emails.app_verification', ['array' => $array])
  28. ->subject(translate('Email Verification - ').env('APP_NAME'));
  29. }
  30. public function toArray($notifiable)
  31. {
  32. return [
  33. //
  34. ];
  35. }
  36. }