App.php
2 years ago
Artisan.php
2 years ago
Auth.php
2 years ago
Blade.php
2 years ago
Broadcast.php
2 years ago
Bus.php
2 years ago
Cache.php
2 years ago
Config.php
2 years ago
Cookie.php
2 years ago
Crypt.php
2 years ago
DB.php
2 years ago
Date.php
2 years ago
Event.php
2 years ago
Facade.php
2 years ago
File.php
2 years ago
Gate.php
2 years ago
Hash.php
2 years ago
Http.php
2 years ago
Lang.php
2 years ago
Log.php
2 years ago
Mail.php
2 years ago
Notification.php
2 years ago
ParallelTesting.php
2 years ago
Password.php
2 years ago
Queue.php
2 years ago
RateLimiter.php
2 years ago
Redirect.php
2 years ago
Redis.php
2 years ago
Request.php
2 years ago
Response.php
2 years ago
Route.php
2 years ago
Schema.php
2 years ago
Session.php
2 years ago
Storage.php
2 years ago
URL.php
2 years ago
Validator.php
2 years ago
View.php
2 years ago
Notification.php
59 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP_SCOPED\Illuminate\Support\Facades; |
| 4 | |
| 5 | use IAWP_SCOPED\Illuminate\Notifications\AnonymousNotifiable; |
| 6 | use IAWP_SCOPED\Illuminate\Notifications\ChannelManager; |
| 7 | use IAWP_SCOPED\Illuminate\Support\Testing\Fakes\NotificationFake; |
| 8 | /** |
| 9 | * @method static \Illuminate\Notifications\ChannelManager locale(string|null $locale) |
| 10 | * @method static \Illuminate\Support\Collection sent(mixed $notifiable, string $notification, callable $callback = null) |
| 11 | * @method static bool hasSent(mixed $notifiable, string $notification) |
| 12 | * @method static mixed channel(string|null $name = null) |
| 13 | * @method static void assertNotSentTo(mixed $notifiable, string|\Closure $notification, callable $callback = null) |
| 14 | * @method static void assertNothingSent() |
| 15 | * @method static void assertSentOnDemand(string|\Closure $notification, callable $callback = null) |
| 16 | * @method static void assertSentTo(mixed $notifiable, string|\Closure $notification, callable $callback = null) |
| 17 | * @method static void assertSentOnDemandTimes(string $notification, int $times = 1) |
| 18 | * @method static void assertSentToTimes(mixed $notifiable, string $notification, int $times = 1) |
| 19 | * @method static void assertTimesSent(int $expectedCount, string $notification) |
| 20 | * @method static void send(\Illuminate\Support\Collection|array|mixed $notifiables, $notification) |
| 21 | * @method static void sendNow(\Illuminate\Support\Collection|array|mixed $notifiables, $notification) |
| 22 | * |
| 23 | * @see \Illuminate\Notifications\ChannelManager |
| 24 | * @internal |
| 25 | */ |
| 26 | class Notification extends Facade |
| 27 | { |
| 28 | /** |
| 29 | * Replace the bound instance with a fake. |
| 30 | * |
| 31 | * @return \Illuminate\Support\Testing\Fakes\NotificationFake |
| 32 | */ |
| 33 | public static function fake() |
| 34 | { |
| 35 | static::swap($fake = new NotificationFake()); |
| 36 | return $fake; |
| 37 | } |
| 38 | /** |
| 39 | * Begin sending a notification to an anonymous notifiable. |
| 40 | * |
| 41 | * @param string $channel |
| 42 | * @param mixed $route |
| 43 | * @return \Illuminate\Notifications\AnonymousNotifiable |
| 44 | */ |
| 45 | public static function route($channel, $route) |
| 46 | { |
| 47 | return (new AnonymousNotifiable())->route($channel, $route); |
| 48 | } |
| 49 | /** |
| 50 | * Get the registered name of the component. |
| 51 | * |
| 52 | * @return string |
| 53 | */ |
| 54 | protected static function getFacadeAccessor() |
| 55 | { |
| 56 | return ChannelManager::class; |
| 57 | } |
| 58 | } |
| 59 |