Mail.php 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. use Illuminate\Support\Testing\Fakes\MailFake;
  4. /**
  5. * @method static \Illuminate\Mail\PendingMail to($users)
  6. * @method static \Illuminate\Mail\PendingMail bcc($users)
  7. * @method static void raw(string $text, $callback)
  8. * @method static void send(string|array|\Illuminate\Contracts\Mail\Mailable $view, array $data = [], \Closure|string $callback = null)
  9. * @method static array failures()
  10. * @method static mixed queue(string|array|\Illuminate\Contracts\Mail\Mailable $view, string $queue = null)
  11. * @method static mixed later(\DateTimeInterface|\DateInterval|int $delay, string|array|\Illuminate\Contracts\Mail\Mailable $view, string $queue = null)
  12. *
  13. * @see \Illuminate\Mail\Mailer
  14. */
  15. class Mail extends Facade
  16. {
  17. /**
  18. * Replace the bound instance with a fake.
  19. *
  20. * @return void
  21. */
  22. public static function fake()
  23. {
  24. static::swap(new MailFake);
  25. }
  26. /**
  27. * Get the registered name of the component.
  28. *
  29. * @return string
  30. */
  31. protected static function getFacadeAccessor()
  32. {
  33. return 'mailer';
  34. }
  35. }