Mail.php 518 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. use Illuminate\Support\Testing\Fakes\MailFake;
  4. /**
  5. * @see \Illuminate\Mail\Mailer
  6. */
  7. class Mail extends Facade
  8. {
  9. /**
  10. * Replace the bound instance with a fake.
  11. *
  12. * @return void
  13. */
  14. public static function fake()
  15. {
  16. static::swap(new MailFake);
  17. }
  18. /**
  19. * Get the registered name of the component.
  20. *
  21. * @return string
  22. */
  23. protected static function getFacadeAccessor()
  24. {
  25. return 'mailer';
  26. }
  27. }