Factory

Factory interface Factory (View source) Methods mixed channel(string|null $name = null) Get a channel instance by name. void send(Collection|array|mixed $notifiables, mixed $notification) Send the given notification to the given notifiable entities. void sendNow(Collection|array|mixed $notifiables, mixed $notification) Send the given notification immediately.

Factory

Factory interface Factory (View source) Methods Cookie make(string $name, string $value, int $minutes, string $path = null, string $domain = null, bool $secure = false, bool $httpOnly = true) Create a new cookie instance. Cookie forever(string $name, string $value, string $path = null, string $domain = null, bool $secure = false, bool $httpOnly = true) Create a cookie that lasts "forever" (five years). Cookie forget(string $name, string $path = null, string $domain = null) Expir

Factory

Factory interface Factory (View source) Methods Filesystem disk(string $name = null) Get a filesystem implementation.

Factory

Factory interface Factory (View source) Methods mixed store(string|null $name = null) Get a cache store instance by name.

Factory

Factory interface Factory (View source) Methods void connection(string $name = null) Get a broadcaster implementation by name.

Factory

Factory interface Factory (View source) Methods mixed guard(string|null $name = null) Get a guard instance by name. void shouldUse(string $name) Set the default guard the factory should serve.

Facades

Facades Introduction When To Use Facades Facades Vs. Dependency Injection Facades Vs. Helper Functions How Facades Work Facade Class Reference Introduction Facades provide a "static" interface to classes that are available in the application's service container. Laravel ships with many facades which provide access to almost all of Laravel's features. Laravel facades serve as "static proxies" to underlying classes in the service container, providing the benefit of a terse, expressive syntax

Facade::__callStatic()

static mixed __callStatic(string $method, array $args) Handle dynamic, static calls to the object. Parameters string $method array $args Return Value mixed Exceptions RuntimeException

Facade::swap()

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

Facade::spy()

static void spy() Convert the facade into a Mockery spy. Return Value void