class
Illuminate
/
Support
/
Facades
/
Http
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Http
Extends
See
- \Illuminate\Http\Client\Factory
Methods
protected
static
getFacadeAccessor ( ) : string
Get the registered name of the component.
public
static
fake ( $callback ) : Factory
Register a stub callable that will intercept requests and be able to return stub responses.
Parameters
- $callback Closure |array
public
static
fakeSequence ( string $urlPattern ) : ResponseSequence
Register a response sequence for the given URL pattern.
Parameters
- $urlPattern string
public
static
preventStrayRequests ( ) : Factory
Indicate that an exception should be thrown if any request is not faked.