Request
class Request extends Facade (View source)
Properties
static protected Application | $app | The application instance being facaded. |
from Facade |
static protected array | $resolvedInstance | The resolved object instances. |
from Facade |
Methods
Create a fresh mock instance for the given class.
Get the registered name of the component.
Resolve the facade root instance from the container.
Get the application instance behind the facade.
Handle dynamic, static calls to the object.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
in
Facade at line 32
static void
resolved(Closure $callback)
Run a Closure when the facade has been resolved.
in
Facade at line 50
static MockInterface
spy()
Convert the facade into a Mockery spy.
in
Facade at line 66
static MockInterface
partialMock()
Initiate a partial mock on the facade.
in
Facade at line 82
static Expectation
shouldReceive()
Initiate a mock expectation on the facade.
in
Facade at line 98
static protected MockInterface
createFreshMockInstance()
Create a fresh mock instance for the given class.
static protected MockInterface
createMock()
Create a fresh mock instance for the given class.
static protected bool
isMock()
Determines whether a mock is set as the instance of the facade.
static protected string|null
getMockableClass()
Get the mockable class for the bound instance.
static void
swap(mixed $instance)
Hotswap the underlying instance behind the facade.
static mixed
getFacadeRoot()
Get the root object behind the facade.
static protected string
getFacadeAccessor()
Get the registered name of the component.
static protected mixed
resolveFacadeInstance(object|string $name)
Resolve the facade root instance from the container.
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.
static Closure
getRouteResolver()
No description
static Closure
getUserResolver()
No description
static Request
capture()
No description
static Request
createFromBase(Request $request)
No description
static Request
duplicate(array|null $query = null, array|null $request = null, array|null $attributes = null, array|null $cookies = null, array|null $files = null, array|null $server = null)
No description
static Request
instance()
No description
static Request
merge(array $input)
No description
static Request
replace(array $input)
No description
static Request
setJson(ParameterBag $json)
No description
static UploadedFile[]|array|null
file(string|null $key = null, mixed $default = null)
No description
static Route|object|string
route(string|null $param = null, string|null $default = null)
No description
static Store
session()
No description
static Store|null
getSession()
No description
static ParameterBag|mixed
json(string|null $key = null, mixed $default = null)
No description
static array
all(array|mixed|null $keys = null)
No description
static array
allFiles()
No description
static array
except(array|mixed $keys)
No description
static array
ips()
No description
static array
keys()
No description
static array
only(array|mixed $keys)
No description
static array
segments()
No description
static array
toArray()
No description
static array
validate(array $rules, mixed $params)
No description
static array
validateWithBag(string $errorBag, array $rules, mixed $params)
No description
static bool
accepts(string|array $contentTypes)
No description
static bool
acceptsAnyContentType()
No description
static bool
acceptsHtml()
No description
static bool
acceptsJson()
No description
static bool
ajax()
No description
static bool
anyFilled(string|array $key)
No description
static bool
exists(string|array $key)
No description
static bool
expectsJson()
No description
static bool
filled(string|array $key)
No description
static bool
fullUrlIs(mixed $patterns)
No description
static bool
has(string|array $key)
No description
static bool
hasAny(string|array $key)
No description
static bool
hasCookie(string $key)
No description
static bool
hasFile(string $key)
No description
static bool
hasHeader(string $key)
No description
static bool
hasValidSignature(bool $absolute = true)
No description
static bool
is(mixed $patterns)
No description
static bool
isJson()
No description
static bool
matchesType(string $actual, string $type)
No description
static bool
offsetExists(string $offset)
No description
static bool
pjax()
No description
static bool
prefers(string|array $contentTypes)
No description
static bool
prefetch()
No description
static bool
routeIs(mixed $patterns)
No description
static bool
secure()
No description
static bool
wantsJson()
No description
static mixed
filterFiles(mixed $files)
No description
static mixed
offsetGet(string $offset)
No description
static mixed
user(string|null $guard = null)
No description
static string
decodedPath()
No description
static string
fingerprint()
No description
static string
format(mixed $default)
No description
static string
fullUrl()
No description
static string
fullUrlWithQuery(array $query)
No description
static string
method()
No description
static string
path()
No description
static string
root()
No description
static string
url()
No description
static string
userAgent()
No description
static string|array
old(string|null $key = null, string|array|null $default = null)
No description
static string|array|null
cookie(string|null $key = null, string|array|null $default = null)
No description
static string|array|null
header(string|null $key = null, string|array|null $default = null)
No description
static string|array|null
input(string|null $key = null, string|array|null $default = null)
No description
static string|array|null
post(string|null $key = null, string|array|null $default = null)
No description
static string|array|null
query(string|null $key = null, string|array|null $default = null)
No description
static string|array|null
server(string|null $key = null, string|array|null $default = null)
No description
static string|null
bearerToken()
No description
static string|null
ip()
No description
static string|null
segment(int $index, string|null $default = null)
No description
static void
flash()
No description
static void
flashExcept(array|mixed $keys)
No description
static void
flashOnly(array|mixed $keys)
No description
static void
flush()
No description
static void
offsetSet(string $offset, mixed $value)
No description
static void
offsetUnset(string $offset)
No description
static void
setLaravelSession(Session $session)
No description