MailFake

MailFake class MailFake implements Mailer (View source) Methods void assertSent(string $mailable, callable|null $callback = null) Assert if a mailable was sent based on a truth-test callback. void assertSentTo(mixed $users, string $mailable, callable|null $callback = null) Assert if a mailable was sent based on a truth-test callback. void assertNotSent(string $mailable, callable|null $callback = null) Determine if a mailable was sent based on a truth-test callback. Collection

Cache::swap()

static void swap(mixed $instance) Hotswap the underlying instance behind the facade. Parameters mixed $instance Return Value void

StoreInterface::put()

void put(string $key, mixed $value, int $minutes) Store an item in the cache for a given number of minutes. Parameters string $key mixed $value int $minutes Return Value void

Session::setFacadeApplication()

static void setFacadeApplication(Application $app) Set the application instance. Parameters Application $app Return Value void

TokenGuard::guest()

bool guest() Determine if the current user is a guest. Return Value bool

TokenGuard::user()

Authenticatable|null user() Get the currently authenticated user. Return Value Authenticatable|null

Store::registerBag()

registerBag(SessionBagInterface $bag) {@inheritdoc} Parameters SessionBagInterface $bag

RouteClearCommand::line()

void line(string $string) Write a string as standard output. Parameters string $string Return Value void

ControllerMakeCommand::callSilent()

int callSilent(string $command, array $arguments = array()) Call another console command silently. Parameters string $command array $arguments Return Value int

ResponseFactory::__construct()

void __construct(Factory $view, Redirector $redirector) Create a new response factory instance. Parameters Factory $view Redirector $redirector Return Value void