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
Notification.php
76 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Support\Facades; |
| 4 | |
| 5 | use IAWPSCOPED\Illuminate\Notifications\AnonymousNotifiable; |
| 6 | use IAWPSCOPED\Illuminate\Notifications\ChannelManager; |
| 7 | use IAWPSCOPED\Illuminate\Support\Testing\Fakes\NotificationFake; |
| 8 | /** |
| 9 | * @method static void send(\Illuminate\Support\Collection|array|mixed $notifiables, mixed $notification) |
| 10 | * @method static void sendNow(\Illuminate\Support\Collection|array|mixed $notifiables, mixed $notification, array|null $channels = null) |
| 11 | * @method static mixed channel(string|null $name = null) |
| 12 | * @method static string getDefaultDriver() |
| 13 | * @method static string deliversVia() |
| 14 | * @method static void deliverVia(string $channel) |
| 15 | * @method static \Illuminate\Notifications\ChannelManager locale(string $locale) |
| 16 | * @method static mixed driver(string|null $driver = null) |
| 17 | * @method static \Illuminate\Notifications\ChannelManager extend(string $driver, \Closure $callback) |
| 18 | * @method static array getDrivers() |
| 19 | * @method static \Illuminate\Contracts\Container\Container getContainer() |
| 20 | * @method static \Illuminate\Notifications\ChannelManager setContainer(\Illuminate\Contracts\Container\Container $container) |
| 21 | * @method static \Illuminate\Notifications\ChannelManager forgetDrivers() |
| 22 | * @method static void assertSentOnDemand(string|\Closure $notification, callable|null $callback = null) |
| 23 | * @method static void assertSentTo(mixed $notifiable, string|\Closure $notification, callable|null $callback = null) |
| 24 | * @method static void assertSentOnDemandTimes(string $notification, int $times = 1) |
| 25 | * @method static void assertSentToTimes(mixed $notifiable, string $notification, int $times = 1) |
| 26 | * @method static void assertNotSentTo(mixed $notifiable, string|\Closure $notification, callable|null $callback = null) |
| 27 | * @method static void assertNothingSent() |
| 28 | * @method static void assertNothingSentTo(mixed $notifiable) |
| 29 | * @method static void assertSentTimes(string $notification, int $expectedCount) |
| 30 | * @method static void assertCount(int $expectedCount) |
| 31 | * @method static \Illuminate\Support\Collection sent(mixed $notifiable, string $notification, callable|null $callback = null) |
| 32 | * @method static bool hasSent(mixed $notifiable, string $notification) |
| 33 | * @method static array sentNotifications() |
| 34 | * @method static void macro(string $name, object|callable $macro) |
| 35 | * @method static void mixin(object $mixin, bool $replace = true) |
| 36 | * @method static bool hasMacro(string $name) |
| 37 | * @method static void flushMacros() |
| 38 | * |
| 39 | * @see \Illuminate\Notifications\ChannelManager |
| 40 | * @see \Illuminate\Support\Testing\Fakes\NotificationFake |
| 41 | * @internal |
| 42 | */ |
| 43 | class Notification extends Facade |
| 44 | { |
| 45 | /** |
| 46 | * Replace the bound instance with a fake. |
| 47 | * |
| 48 | * @return \Illuminate\Support\Testing\Fakes\NotificationFake |
| 49 | */ |
| 50 | public static function fake() |
| 51 | { |
| 52 | static::swap($fake = new NotificationFake()); |
| 53 | return $fake; |
| 54 | } |
| 55 | /** |
| 56 | * Begin sending a notification to an anonymous notifiable. |
| 57 | * |
| 58 | * @param string $channel |
| 59 | * @param mixed $route |
| 60 | * @return \Illuminate\Notifications\AnonymousNotifiable |
| 61 | */ |
| 62 | public static function route($channel, $route) |
| 63 | { |
| 64 | return (new AnonymousNotifiable())->route($channel, $route); |
| 65 | } |
| 66 | /** |
| 67 | * Get the registered name of the component. |
| 68 | * |
| 69 | * @return string |
| 70 | */ |
| 71 | protected static function getFacadeAccessor() |
| 72 | { |
| 73 | return ChannelManager::class; |
| 74 | } |
| 75 | } |
| 76 |