Вход Регистрация
Файл: system/vendor/illuminate/support/Facades/Notification.php
Строк: 136
<?php

namespace IlluminateSupportFacades;

use 
IlluminateNotificationsAnonymousNotifiable;
use 
IlluminateNotificationsChannelManager;
use 
IlluminateSupportTestingFakesNotificationFake;

/**
 * @method static void send(IlluminateSupportCollection|array|mixed $notifiables, $notification)
 * @method static void sendNow(IlluminateSupportCollection|array|mixed $notifiables, $notification)
 * @method static mixed channel(string|null $name = null)
 * @method static IlluminateNotificationsChannelManager locale(string|null $locale)
 * @method static void assertSentTo(mixed $notifiable, string $notification, callable $callback = null)
 * @method static void assertSentToTimes(mixed $notifiable, string $notification, int $times = 1)
 * @method static void assertNotSentTo(mixed $notifiable, string $notification, callable $callback = null)
 * @method static void assertNothingSent()
 * @method static void assertTimesSent(int $expectedCount, string $notification)
 * @method static IlluminateSupportCollection sent(mixed $notifiable, string $notification, callable $callback = null)
 * @method static bool hasSent(mixed $notifiable, string $notification)
 *
 * @see IlluminateNotificationsChannelManager
 */
class Notification extends Facade
{
    
/**
     * Replace the bound instance with a fake.
     *
     * @return IlluminateSupportTestingFakesNotificationFake
     */
    
public static function fake()
    {
        static::
swap($fake = new NotificationFake);

        return 
$fake;
    }

    
/**
     * Begin sending a notification to an anonymous notifiable.
     *
     * @param  string  $channel
     * @param  mixed  $route
     * @return IlluminateNotificationsAnonymousNotifiable
     */
    
public static function route($channel$route)
    {
        return (new 
AnonymousNotifiable)->route($channel$route);
    }

    
/**
     * Get the registered name of the component.
     *
     * @return string
     */
    
protected static function getFacadeAccessor()
    {
        return 
ChannelManager::class;
    }
}
Онлайн: 0
Реклама