Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. // This is from my config.
  2.  
  3. 'EmailTransport' => [
  4. 'default' => [
  5. 'className' => 'Smtp',
  6. 'host' => env('EMAIL_TRANSPORT_HOST'),
  7. 'port' => env('EMAIL_TRANSPORT_PORT'),
  8. 'timeout' => 30,
  9. 'username' => env('EMAIL_TRANSPORT_USERNAME'),
  10. 'password' => env('EMAIL_TRANSPORT_PASSWORD'),
  11. 'client' => null,
  12. 'tls' => true,
  13. 'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null),
  14. ],
  15. ],
  16. 'Email' => [
  17. 'default' => [
  18. 'transport' => 'default',
  19. 'from' => [env('EMAIL_FROM') => env('EMAIL_NAME')]
  20. ],
  21. ],
  22.  
  23. // Then when run Email::configTransport('default'); it gives me
  24. [
  25. "path" => "file",
  26. "scheme" => "null",
  27. "className" => "null",
  28. "host" => "smtp.mailtrap.io",
  29. "port" => "25",
  30. "timeout" => 30,
  31. "username" => "9109165cf8a559",
  32. "password" => "a2229c0365207c",
  33. "client" => null,
  34. "tls" => true,
  35. ]
  36.  
  37. // Which means, when I run:
  38. new Email('default');
  39. // I get
  40. InvalidArgumentException with message 'Transport class "null" not found.'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement