App.php
1 month ago
Artisan.php
1 month ago
Auth.php
1 month ago
Blade.php
1 month ago
Broadcast.php
1 month ago
Bus.php
1 month ago
Cache.php
1 month ago
Config.php
1 month ago
Cookie.php
1 month ago
Crypt.php
1 month ago
DB.php
1 month ago
Date.php
1 month ago
Event.php
1 month ago
Facade.php
1 month ago
File.php
1 month ago
Gate.php
1 month ago
Hash.php
1 month ago
Http.php
1 month ago
Lang.php
1 month ago
Log.php
1 month ago
Mail.php
1 month ago
Notification.php
1 month ago
ParallelTesting.php
1 month ago
Password.php
1 month ago
Queue.php
1 month ago
RateLimiter.php
1 month ago
Redirect.php
1 month ago
Redis.php
1 month ago
Request.php
1 month ago
Response.php
1 month ago
Route.php
1 month ago
Schema.php
1 month ago
Session.php
1 month ago
Storage.php
1 month ago
URL.php
1 month ago
Validator.php
1 month ago
View.php
1 month ago
Vite.php
1 month ago
Mail.php
82 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Support\Facades; |
| 4 | |
| 5 | use IAWPSCOPED\Illuminate\Support\Testing\Fakes\MailFake; |
| 6 | /** |
| 7 | * @method static \Illuminate\Contracts\Mail\Mailer mailer(string|null $name = null) |
| 8 | * @method static \Illuminate\Mail\Mailer driver(string|null $driver = null) |
| 9 | * @method static \Symfony\Component\Mailer\Transport\TransportInterface createSymfonyTransport(array $config) |
| 10 | * @method static string getDefaultDriver() |
| 11 | * @method static void setDefaultDriver(string $name) |
| 12 | * @method static void purge(string|null $name = null) |
| 13 | * @method static \Illuminate\Mail\MailManager extend(string $driver, \Closure $callback) |
| 14 | * @method static \Illuminate\Contracts\Foundation\Application getApplication() |
| 15 | * @method static \Illuminate\Mail\MailManager setApplication(\Illuminate\Contracts\Foundation\Application $app) |
| 16 | * @method static \Illuminate\Mail\MailManager forgetMailers() |
| 17 | * @method static void alwaysFrom(string $address, string|null $name = null) |
| 18 | * @method static void alwaysReplyTo(string $address, string|null $name = null) |
| 19 | * @method static void alwaysReturnPath(string $address) |
| 20 | * @method static void alwaysTo(string $address, string|null $name = null) |
| 21 | * @method static \Illuminate\Mail\PendingMail to(mixed $users) |
| 22 | * @method static \Illuminate\Mail\PendingMail cc(mixed $users) |
| 23 | * @method static \Illuminate\Mail\PendingMail bcc(mixed $users) |
| 24 | * @method static \Illuminate\Mail\SentMessage|null html(string $html, mixed $callback) |
| 25 | * @method static \Illuminate\Mail\SentMessage|null raw(string $text, mixed $callback) |
| 26 | * @method static \Illuminate\Mail\SentMessage|null plain(string $view, array $data, mixed $callback) |
| 27 | * @method static string render(string|array $view, array $data = []) |
| 28 | * @method static \Illuminate\Mail\SentMessage|null send(\Illuminate\Contracts\Mail\Mailable|string|array $view, array $data = [], \Closure|string|null $callback = null) |
| 29 | * @method static mixed queue(\Illuminate\Contracts\Mail\Mailable|string|array $view, string|null $queue = null) |
| 30 | * @method static mixed onQueue(string $queue, \Illuminate\Contracts\Mail\Mailable $view) |
| 31 | * @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable $view) |
| 32 | * @method static mixed later(\DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable $view, string|null $queue = null) |
| 33 | * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable $view) |
| 34 | * @method static \Symfony\Component\Mailer\Transport\TransportInterface getSymfonyTransport() |
| 35 | * @method static \Illuminate\Contracts\View\Factory getViewFactory() |
| 36 | * @method static void setSymfonyTransport(\Symfony\Component\Mailer\Transport\TransportInterface $transport) |
| 37 | * @method static \Illuminate\Mail\Mailer setQueue(\Illuminate\Contracts\Queue\Factory $queue) |
| 38 | * @method static void macro(string $name, object|callable $macro) |
| 39 | * @method static void mixin(object $mixin, bool $replace = true) |
| 40 | * @method static bool hasMacro(string $name) |
| 41 | * @method static void flushMacros() |
| 42 | * @method static void assertSent(string|\Closure $mailable, callable|int|null $callback = null) |
| 43 | * @method static void assertNotOutgoing(string|\Closure $mailable, callable|null $callback = null) |
| 44 | * @method static void assertNotSent(string|\Closure $mailable, callable|null $callback = null) |
| 45 | * @method static void assertNothingOutgoing() |
| 46 | * @method static void assertNothingSent() |
| 47 | * @method static void assertQueued(string|\Closure $mailable, callable|int|null $callback = null) |
| 48 | * @method static void assertNotQueued(string|\Closure $mailable, callable|null $callback = null) |
| 49 | * @method static void assertNothingQueued() |
| 50 | * @method static \Illuminate\Support\Collection sent(string|\Closure $mailable, callable|null $callback = null) |
| 51 | * @method static bool hasSent(string $mailable) |
| 52 | * @method static \Illuminate\Support\Collection queued(string|\Closure $mailable, callable|null $callback = null) |
| 53 | * @method static bool hasQueued(string $mailable) |
| 54 | * @method static array failures() |
| 55 | * |
| 56 | * @see \Illuminate\Mail\MailManager |
| 57 | * @see \Illuminate\Support\Testing\Fakes\MailFake |
| 58 | * @internal |
| 59 | */ |
| 60 | class Mail extends Facade |
| 61 | { |
| 62 | /** |
| 63 | * Replace the bound instance with a fake. |
| 64 | * |
| 65 | * @return \Illuminate\Support\Testing\Fakes\MailFake |
| 66 | */ |
| 67 | public static function fake() |
| 68 | { |
| 69 | static::swap($fake = new MailFake()); |
| 70 | return $fake; |
| 71 | } |
| 72 | /** |
| 73 | * Get the registered name of the component. |
| 74 | * |
| 75 | * @return string |
| 76 | */ |
| 77 | protected static function getFacadeAccessor() |
| 78 | { |
| 79 | return 'mail.manager'; |
| 80 | } |
| 81 | } |
| 82 |