Facade (Support\Facades)
Facade
class Facade (View source)
Methods
static void | swap( mixed $instance) Hotswap the underlying instance behind the facade. | |
static Expectation | shouldReceive() Initiate a mock expectation on the facade. | |
static mixed | getFacadeRoot() Get the root object behind the facade. | |
static void | clearResolvedInstance( string $name) Clear a resolved facade instance. | |
static void | clearResolvedInstances() Clear all of the resolved instances. | |
static Application | getFacadeApplication() Get the application instance behind the facade. | |
static void | setFacadeApplication( Application $app) Set the application instance. | |
static mixed | __callStatic( string $method, array $args) Handle dynamic, static calls to the object. |
Details
static void swap( mixed $instance)
Hotswap the underlying instance behind the facade.
static Expectation shouldReceive()
Initiate a mock expectation on the facade.
static mixed getFacadeRoot()
Get the root object behind the facade.
static void clearResolvedInstance( string $name)
Clear a resolved facade instance.
static void clearResolvedInstances()
Clear all of the resolved instances.
static Application getFacadeApplication()
Get the application instance behind the facade.
static void setFacadeApplication( Application $app)
Set the application instance.
static mixed __callStatic( string $method, array $args)
Handle dynamic, static calls to the object.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Support/Facades/Facade.html