class Csrf extends Facade (View source)

Provide access to the CSRF service.

Methods

static void
spy()

Convert the facade into a Mockery spy.

from Facade
static Expectation
shouldReceive()

Initiate a mock expectation on the facade.

from Facade
static void
swap(mixed $instance)

Hotswap the underlying instance behind the facade.

from Facade
static mixed
getFacadeRoot()

Get the root object behind the facade.

from Facade
static void
clearResolvedInstance(string $name)

Clear a resolved facade instance.

from Facade
static void
clearResolvedInstances()

Clear all of the resolved instances.

from Facade
static object
getFacadeApplication()

Get the application instance behind the facade.

from Facade
static void
setFacadeApplication(object $app)

Set the application instance.

from Facade
static mixed
__callStatic(string $method, array $args)

Handle dynamic, static calls to the object.

from Facade

Details

static void spy()

Convert the facade into a Mockery spy.

Return Value

void

static Expectation shouldReceive()

Initiate a mock expectation on the facade.

Return Value

Expectation

static void swap(mixed $instance)

Hotswap the underlying instance behind the facade.

Parameters

mixed $instance

Return Value

void

static mixed getFacadeRoot()

Get the root object behind the facade.

Return Value

mixed

static void clearResolvedInstance(string $name)

Clear a resolved facade instance.

Parameters

string $name

Return Value

void

static void clearResolvedInstances()

Clear all of the resolved instances.

Return Value

void

static object getFacadeApplication()

Get the application instance behind the facade.

Return Value

object

static void setFacadeApplication(object $app)

Set the application instance.

Parameters

object $app

Return Value

void

static mixed __callStatic(string $method, array $args)

Handle dynamic, static calls to the object.

Parameters

string $method
array $args

Return Value

mixed

Exceptions

RuntimeException