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
static protected bool $cached

Indicates if the resolved instance should be cached.

from  Facade

Methods

static void
resolved(Closure $callback)

Run a Closure when the facade has been resolved.

from  Facade
static MockInterface
spy()

Convert the facade into a Mockery spy.

from  Facade
static MockInterface
partialMock()

Initiate a partial mock on the facade.

from  Facade
static Expectation
shouldReceive()

Initiate a mock expectation on the facade.

from  Facade
static Expectation
expects()

Initiate a mock expectation on the facade.

from  Facade
static MockInterface
createFreshMockInstance()

Create a fresh mock instance for the given class.

from  Facade
static MockInterface
createMock()

Create a fresh mock instance for the given class.

from  Facade
static bool
isMock()

Determines whether a mock is set as the instance of the facade.

from  Facade
static string|null
getMockableClass()

Get the mockable class for the bound instance.

from  Facade
static void
swap(mixed $instance)

Hotswap the underlying instance behind the facade.

from  Facade
static bool
isFake()

Determines whether a "fake" has been set as the facade instance.

from  Facade
static mixed
getFacadeRoot()

Get the root object behind the facade.

from  Facade
static string
getFacadeAccessor()

Get the registered name of the component.

static mixed
resolveFacadeInstance(string $name)

Resolve the facade root instance from the container.

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 Collection
defaultAliases()

Get the application default aliases.

from  Facade
static Application
getFacadeApplication()

Get the application instance behind the facade.

from  Facade
static void
setFacadeApplication(Application $app)

Set the application instance.

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

Handle dynamic, static calls to the object.

from  Facade
static Request
capture()

No description

static Request
instance()

No description

static string
method()

No description

static string
root()

No description

static string
url()

No description

static string
fullUrl()

No description

static string
fullUrlWithQuery(array $query)

No description

static string
fullUrlWithoutQuery(array|string $keys)

No description

static string
path()

No description

static string
decodedPath()

No description

static string|null
segment(int $index, string|null $default = null)

No description

static array
segments()

No description

static bool
is(mixed $patterns)

No description

static bool
routeIs(mixed $patterns)

No description

static bool
fullUrlIs(mixed $patterns)

No description

static string
host()

No description

static string
httpHost()

No description

static string
schemeAndHttpHost()

No description

static bool
ajax()

No description

static bool
pjax()

No description

static bool
prefetch()

No description

static bool
secure()

No description

static string|null
ip()

No description

static array
ips()

No description

static string|null
userAgent()

No description

static Request
merge(array $input)

No description

static Request
mergeIfMissing(array $input)

No description

static Request
replace(array $input)

No description

static mixed
get(string $key, mixed $default = null)

No description

static ParameterBag|mixed
json(string|null $key = null, mixed $default = null)

No description

static Request
createFrom(Request $from, Request|null $to = null)

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 bool
hasSession(bool $skipIfUninitialized = false)

No description

static SessionInterface
getSession()

No description

static Session
session()

No description

static void
setLaravelSession(Session $session)

No description

static void
setRequestLocale(string $locale)

No description

static void
setDefaultRequestLocale(string $locale)

No description

static mixed
user(string|null $guard = null)

No description

static Route|object|string|null
route(string|null $param = null, mixed $default = null)

No description

static string
fingerprint()

No description

static Request
setJson(ParameterBag $json)

No description

static Closure
getUserResolver()

No description

static Request
setUserResolver(Closure $callback)

No description

static Closure
getRouteResolver()

No description

static Request
setRouteResolver(Closure $callback)

No description

static array
toArray()

No description

static void
initialize(array $query = [], array $request = [], array $attributes = [], array $cookies = [], array $files = [], array $server = [], string|resource|null $content = null)

No description

static static
createFromGlobals()

No description

static static
create(string $uri, string $method = 'GET', array $parameters = [], array $cookies = [], array $files = [], array $server = [], string|resource|null $content = null)

No description

static void
setFactory(callable|null $callable)

No description

static void
overrideGlobals()

No description

static void
setTrustedProxies(array $proxies, int $trustedHeaderSet)

No description

static string[]
getTrustedProxies()

No description

static int
getTrustedHeaderSet()

No description

static void
setTrustedHosts(array $hostPatterns)

No description

static string[]
getTrustedHosts()

No description

static string
normalizeQueryString(string|null $qs)

No description

static void
static bool
static bool
hasPreviousSession()

No description

static void
setSession(SessionInterface $session)

No description

static array
getClientIps()

No description

static string|null
getClientIp()

No description

static string
getScriptName()

No description

static string
getPathInfo()

No description

static string
getBasePath()

No description

static string
getBaseUrl()

No description

static string
getScheme()

No description

static int|string|null
getPort()

No description

static string|null
getUser()

No description

static string|null
getPassword()

No description

static string|null
getUserInfo()

No description

static string
getHttpHost()

No description

static string
getRequestUri()

No description

static string
getSchemeAndHttpHost()

No description

static string
getUri()

No description

static string
getUriForPath(string $path)

No description

static string
getRelativeUriForPath(string $path)

No description

static string|null
getQueryString()

No description

static bool
isSecure()

No description

static string
getHost()

No description

static void
setMethod(string $method)

No description

static string
getMethod()

No description

static string
getRealMethod()

No description

static string|null
getMimeType(string $format)

No description

static string[]
getMimeTypes(string $format)

No description

static string|null
getFormat(string|null $mimeType)

No description

static void
setFormat(string|null $format, string|string[] $mimeTypes)

No description

static string|null
getRequestFormat(string|null $default = 'html')

No description

static void
setRequestFormat(string|null $format)

No description

static string|null
getContentTypeFormat()

No description

static void
setDefaultLocale(string $locale)

No description

static string
getDefaultLocale()

No description

static void
setLocale(string $locale)

No description

static string
getLocale()

No description

static bool
isMethod(string $method)

No description

static bool
isMethodSafe()

No description

static bool
isMethodIdempotent()

No description

static bool
isMethodCacheable()

No description

static string|null
getProtocolVersion()

No description

static string|resource
getContent(bool $asResource = false)

No description

static array
getETags()

No description

static bool
isNoCache()

No description

static string|null
getPreferredFormat(string|null $default = 'html')

No description

static string|null
getPreferredLanguage(string[] $locales = null)

No description

static string[]
getLanguages()

No description

static string[]
getCharsets()

No description

static string[]
getEncodings()

No description

static string[]
getAcceptableContentTypes()

No description

static bool
isXmlHttpRequest()

No description

static bool
preferSafeContent()

No description

static bool
isFromTrustedProxy()

No description

static array
filterPrecognitiveRules(array $rules)

No description

static bool
isAttemptingPrecognition()

No description

static bool
isPrecognitive()

No description

static bool
isJson()

No description

static bool
expectsJson()

No description

static bool
wantsJson()

No description

static bool
accepts(string|array $contentTypes)

No description

static string|null
prefers(string|array $contentTypes)

No description

static bool
acceptsAnyContentType()

No description

static bool
acceptsJson()

No description

static bool
acceptsHtml()

No description

static bool
matchesType(string $actual, string $type)

No description

static string
format(string $default = 'html')

No description

static string|array|null
old(string|null $key = null, Model|string|array|null $default = null)

No description

static void
flash()

No description

static void
flashOnly(array|mixed $keys)

No description

static void
flashExcept(array|mixed $keys)

No description

static void
flush()

No description

static string|array|null
server(string|null $key = null, string|array|null $default = null)

No description

static bool
hasHeader(string $key)

No description

static string|array|null
header(string|null $key = null, string|array|null $default = null)

No description

static string|null
bearerToken()

No description

static bool
exists(string|array $key)

No description

static bool
has(string|array $key)

No description

static bool
hasAny(string|array $keys)

No description

static Request|mixed
whenHas(string $key, callable $callback, callable|null $default = null)

No description

static bool
filled(string|array $key)

No description

static bool
isNotFilled(string|array $key)

No description

static bool
anyFilled(string|array $keys)

No description

static Request|mixed
whenFilled(string $key, callable $callback, callable|null $default = null)

No description

static bool
missing(string|array $key)

No description

static Request|mixed
whenMissing(string $key, callable $callback, callable|null $default = null)

No description

static array
keys()

No description

static array
all(array|mixed|null $keys = null)

No description

static mixed
input(string|null $key = null, mixed $default = null)

No description

static Stringable
str(string $key, mixed $default = null)

No description

static Stringable
string(string $key, mixed $default = null)

No description

static bool
boolean(string|null $key = null, bool $default = false)

No description

static int
integer(string $key, int $default)

No description

static float
float(string $key, float $default)

No description

static Carbon|null
date(string $key, string|null $format = null, string|null $tz = null)

No description

static object|null
enum(string $key, string $enumClass)

No description

static Collection
collect(array|string|null $key = null)

No description

static array
only(array|mixed $keys)

No description

static array
except(array|mixed $keys)

No description

static string|array|null
query(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 bool
hasCookie(string $key)

No description

static string|array|null
cookie(string|null $key = null, string|array|null $default = null)

No description

static array
allFiles()

No description

static bool
hasFile(string $key)

No description

static UploadedFile[]|array|null
file(string|null $key = null, mixed $default = null)

No description

static never
dd(mixed $keys)

No description

static Request
dump(mixed $keys = [])

No description

static void
macro(string $name, object|callable $macro)

No description

static void
mixin(object $mixin, bool $replace = true)

No description

static bool
hasMacro(string $name)

No description

static void
flushMacros()

No description

static array
validate(array $rules, mixed $params)

No description

static array
validateWithBag(string $errorBag, array $rules, mixed $params)

No description

static bool
hasValidSignature(bool $absolute = true)

No description

Details

static void resolved(Closure $callback)

Run a Closure when the facade has been resolved.

Parameters

Closure $callback

Return Value

void

static MockInterface spy()

Convert the facade into a Mockery spy.

Return Value

MockInterface

static MockInterface partialMock()

Initiate a partial mock on the facade.

Return Value

MockInterface

static Expectation shouldReceive()

Initiate a mock expectation on the facade.

Return Value

Expectation

static Expectation expects()

Initiate a mock expectation on the facade.

Return Value

Expectation

static protected MockInterface createFreshMockInstance()

Create a fresh mock instance for the given class.

Return Value

MockInterface

static protected MockInterface createMock()

Create a fresh mock instance for the given class.

Return Value

MockInterface

static protected bool isMock()

Determines whether a mock is set as the instance of the facade.

Return Value

bool

static protected string|null getMockableClass()

Get the mockable class for the bound instance.

Return Value

string|null

static void swap(mixed $instance)

Hotswap the underlying instance behind the facade.

Parameters

mixed $instance

Return Value

void

static protected bool isFake()

Determines whether a "fake" has been set as the facade instance.

Return Value

bool

static mixed getFacadeRoot()

Get the root object behind the facade.

Return Value

mixed

static protected string getFacadeAccessor()

Get the registered name of the component.

Return Value

string

static protected mixed resolveFacadeInstance(string $name)

Resolve the facade root instance from the container.

Parameters

string $name

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 Collection defaultAliases()

Get the application default aliases.

Return Value

Collection

static Application getFacadeApplication()

Get the application instance behind the facade.

Return Value

Application

static void setFacadeApplication(Application $app)

Set the application instance.

Parameters

Application $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

static Request capture()

No description

Return Value

Request

static Request instance()

No description

Return Value

Request

static string method()

No description

Return Value

string

static string root()

No description

Return Value

string

static string url()

No description

Return Value

string

static string fullUrl()

No description

Return Value

string

static string fullUrlWithQuery(array $query)

No description

Parameters

array $query

Return Value

string

static string fullUrlWithoutQuery(array|string $keys)

No description

Parameters

array|string $keys

Return Value

string

static string path()

No description

Return Value

string

static string decodedPath()

No description

Return Value

string

static string|null segment(int $index, string|null $default = null)

No description

Parameters

int $index
string|null $default

Return Value

string|null

static array segments()

No description

Return Value

array

static bool is(mixed $patterns)

No description

Parameters

mixed $patterns

Return Value

bool

static bool routeIs(mixed $patterns)

No description

Parameters

mixed $patterns

Return Value

bool

static bool fullUrlIs(mixed $patterns)

No description

Parameters

mixed $patterns

Return Value

bool

static string host()

No description

Return Value

string

static string httpHost()

No description

Return Value

string

static string schemeAndHttpHost()

No description

Return Value

string

static bool ajax()

No description

Return Value

bool

static bool pjax()

No description

Return Value

bool

static bool prefetch()

No description

Return Value

bool

static bool secure()

No description

Return Value

bool

static string|null ip()

No description

Return Value

string|null

static array ips()

No description

Return Value

array

static string|null userAgent()

No description

Return Value

string|null

static Request merge(array $input)

No description

Parameters

array $input

Return Value

Request

static Request mergeIfMissing(array $input)

No description

Parameters

array $input

Return Value

Request

static Request replace(array $input)

No description

Parameters

array $input

Return Value

Request

static mixed get(string $key, mixed $default = null)

No description

Parameters

string $key
mixed $default

Return Value

mixed

static ParameterBag|mixed json(string|null $key = null, mixed $default = null)

No description

Parameters

string|null $key
mixed $default

Return Value

ParameterBag|mixed

static Request createFrom(Request $from, Request|null $to = null)

No description

Parameters

Request $from
Request|null $to

Return Value

Request

static Request createFromBase(Request $request)

No description

Parameters

Request $request

Return Value

Request

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

Parameters

array|null $query
array|null $request
array|null $attributes
array|null $cookies
array|null $files
array|null $server

Return Value

Request

static bool hasSession(bool $skipIfUninitialized = false)

No description

Parameters

bool $skipIfUninitialized

Return Value

bool

static SessionInterface getSession()

No description

Return Value

SessionInterface

static Session session()

No description

Return Value

Session

static void setLaravelSession(Session $session)

No description

Parameters

Session $session

Return Value

void

static void setRequestLocale(string $locale)

No description

Parameters

string $locale

Return Value

void

static void setDefaultRequestLocale(string $locale)

No description

Parameters

string $locale

Return Value

void

static mixed user(string|null $guard = null)

No description

Parameters

string|null $guard

Return Value

mixed

static Route|object|string|null route(string|null $param = null, mixed $default = null)

No description

Parameters

string|null $param
mixed $default

Return Value

Route|object|string|null

static string fingerprint()

No description

Return Value

string

static Request setJson(ParameterBag $json)

No description

Parameters

ParameterBag $json

Return Value

Request

static Closure getUserResolver()

No description

Return Value

Closure

static Request setUserResolver(Closure $callback)

No description

Parameters

Closure $callback

Return Value

Request

static Closure getRouteResolver()

No description

Return Value

Closure

static Request setRouteResolver(Closure $callback)

No description

Parameters

Closure $callback

Return Value

Request

static array toArray()

No description

Return Value

array

static void initialize(array $query = [], array $request = [], array $attributes = [], array $cookies = [], array $files = [], array $server = [], string|resource|null $content = null)

No description

Parameters

array $query
array $request
array $attributes
array $cookies
array $files
array $server
string|resource|null $content

Return Value

void

static static createFromGlobals()

No description

Return Value

static

static static create(string $uri, string $method = 'GET', array $parameters = [], array $cookies = [], array $files = [], array $server = [], string|resource|null $content = null)

No description

Parameters

string $uri
string $method
array $parameters
array $cookies
array $files
array $server
string|resource|null $content

Return Value

static

static void setFactory(callable|null $callable)

No description

Parameters

callable|null $callable

Return Value

void

static void overrideGlobals()

No description

Return Value

void

static void setTrustedProxies(array $proxies, int $trustedHeaderSet)

No description

Parameters

array $proxies
int $trustedHeaderSet

Return Value

void

static string[] getTrustedProxies()

No description

Return Value

string[]

static int getTrustedHeaderSet()

No description

Return Value

int

static void setTrustedHosts(array $hostPatterns)

No description

Parameters

array $hostPatterns

Return Value

void

static string[] getTrustedHosts()

No description

Return Value

string[]

static string normalizeQueryString(string|null $qs)

No description

Parameters

string|null $qs

Return Value

string

static void enableHttpMethodParameterOverride()

No description

Return Value

void

static bool getHttpMethodParameterOverride()

No description

Return Value

bool

static bool hasPreviousSession()

No description

Return Value

bool

static void setSession(SessionInterface $session)

No description

Parameters

SessionInterface $session

Return Value

void

static array getClientIps()

No description

Return Value

array

static string|null getClientIp()

No description

Return Value

string|null

static string getScriptName()

No description

Return Value

string

static string getPathInfo()

No description

Return Value

string

static string getBasePath()

No description

Return Value

string

static string getBaseUrl()

No description

Return Value

string

static string getScheme()

No description

Return Value

string

static int|string|null getPort()

No description

Return Value

int|string|null

static string|null getUser()

No description

Return Value

string|null

static string|null getPassword()

No description

Return Value

string|null

static string|null getUserInfo()

No description

Return Value

string|null

static string getHttpHost()

No description

Return Value

string

static string getRequestUri()

No description

Return Value

string

static string getSchemeAndHttpHost()

No description

Return Value

string

static string getUri()

No description

Return Value

string

static string getUriForPath(string $path)

No description

Parameters

string $path

Return Value

string

static string getRelativeUriForPath(string $path)

No description

Parameters

string $path

Return Value

string

static string|null getQueryString()

No description

Return Value

string|null

static bool isSecure()

No description

Return Value

bool

static string getHost()

No description

Return Value

string

static void setMethod(string $method)

No description

Parameters

string $method

Return Value

void

static string getMethod()

No description

Return Value

string

static string getRealMethod()

No description

Return Value

string

static string|null getMimeType(string $format)

No description

Parameters

string $format

Return Value

string|null

static string[] getMimeTypes(string $format)

No description

Parameters

string $format

Return Value

string[]

static string|null getFormat(string|null $mimeType)

No description

Parameters

string|null $mimeType

Return Value

string|null

static void setFormat(string|null $format, string|string[] $mimeTypes)

No description

Parameters

string|null $format
string|string[] $mimeTypes

Return Value

void

static string|null getRequestFormat(string|null $default = 'html')

No description

Parameters

string|null $default

Return Value

string|null

static void setRequestFormat(string|null $format)

No description

Parameters

string|null $format

Return Value

void

static string|null getContentTypeFormat()

No description

Return Value

string|null

static void setDefaultLocale(string $locale)

No description

Parameters

string $locale

Return Value

void

static string getDefaultLocale()

No description

Return Value

string

static void setLocale(string $locale)

No description

Parameters

string $locale

Return Value

void

static string getLocale()

No description

Return Value

string

static bool isMethod(string $method)

No description

Parameters

string $method

Return Value

bool

static bool isMethodSafe()

No description

Return Value

bool

static bool isMethodIdempotent()

No description

Return Value

bool

static bool isMethodCacheable()

No description

Return Value

bool

static string|null getProtocolVersion()

No description

Return Value

string|null

static string|resource getContent(bool $asResource = false)

No description

Parameters

bool $asResource

Return Value

string|resource

static array getETags()

No description

Return Value

array

static bool isNoCache()

No description

Return Value

bool

static string|null getPreferredFormat(string|null $default = 'html')

No description

Parameters

string|null $default

Return Value

string|null

static string|null getPreferredLanguage(string[] $locales = null)

No description

Parameters

string[] $locales

Return Value

string|null

static string[] getLanguages()

No description

Return Value

string[]

static string[] getCharsets()

No description

Return Value

string[]

static string[] getEncodings()

No description

Return Value

string[]

static string[] getAcceptableContentTypes()

No description

Return Value

string[]

static bool isXmlHttpRequest()

No description

Return Value

bool

static bool preferSafeContent()

No description

Return Value

bool

static bool isFromTrustedProxy()

No description

Return Value

bool

static array filterPrecognitiveRules(array $rules)

No description

Parameters

array $rules

Return Value

array

static bool isAttemptingPrecognition()

No description

Return Value

bool

static bool isPrecognitive()

No description

Return Value

bool

static bool isJson()

No description

Return Value

bool

static bool expectsJson()

No description

Return Value

bool

static bool wantsJson()

No description

Return Value

bool

static bool accepts(string|array $contentTypes)

No description

Parameters

string|array $contentTypes

Return Value

bool

static string|null prefers(string|array $contentTypes)

No description

Parameters

string|array $contentTypes

Return Value

string|null

static bool acceptsAnyContentType()

No description

Return Value

bool

static bool acceptsJson()

No description

Return Value

bool

static bool acceptsHtml()

No description

Return Value

bool

static bool matchesType(string $actual, string $type)

No description

Parameters

string $actual
string $type

Return Value

bool

static string format(string $default = 'html')

No description

Parameters

string $default

Return Value

string

static string|array|null old(string|null $key = null, Model|string|array|null $default = null)

No description

Parameters

string|null $key
Model|string|array|null $default

Return Value

string|array|null

static void flash()

No description

Return Value

void

static void flashOnly(array|mixed $keys)

No description

Parameters

array|mixed $keys

Return Value

void

static void flashExcept(array|mixed $keys)

No description

Parameters

array|mixed $keys

Return Value

void

static void flush()

No description

Return Value

void

static string|array|null server(string|null $key = null, string|array|null $default = null)

No description

Parameters

string|null $key
string|array|null $default

Return Value

string|array|null

static bool hasHeader(string $key)

No description

Parameters

string $key

Return Value

bool

static string|array|null header(string|null $key = null, string|array|null $default = null)

No description

Parameters

string|null $key
string|array|null $default

Return Value

string|array|null

static string|null bearerToken()

No description

Return Value

string|null

static bool exists(string|array $key)

No description

Parameters

string|array $key

Return Value

bool

static bool has(string|array $key)

No description

Parameters

string|array $key

Return Value

bool

static bool hasAny(string|array $keys)

No description

Parameters

string|array $keys

Return Value

bool

static Request|mixed whenHas(string $key, callable $callback, callable|null $default = null)

No description

Parameters

string $key
callable $callback
callable|null $default

Return Value

Request|mixed

static bool filled(string|array $key)

No description

Parameters

string|array $key

Return Value

bool

static bool isNotFilled(string|array $key)

No description

Parameters

string|array $key

Return Value

bool

static bool anyFilled(string|array $keys)

No description

Parameters

string|array $keys

Return Value

bool

static Request|mixed whenFilled(string $key, callable $callback, callable|null $default = null)

No description

Parameters

string $key
callable $callback
callable|null $default

Return Value

Request|mixed

static bool missing(string|array $key)

No description

Parameters

string|array $key

Return Value

bool

static Request|mixed whenMissing(string $key, callable $callback, callable|null $default = null)

No description

Parameters

string $key
callable $callback
callable|null $default

Return Value

Request|mixed

static array keys()

No description

Return Value

array

static array all(array|mixed|null $keys = null)

No description

Parameters

array|mixed|null $keys

Return Value

array

static mixed input(string|null $key = null, mixed $default = null)

No description

Parameters

string|null $key
mixed $default

Return Value

mixed

static Stringable str(string $key, mixed $default = null)

No description

Parameters

string $key
mixed $default

Return Value

Stringable

static Stringable string(string $key, mixed $default = null)

No description

Parameters

string $key
mixed $default

Return Value

Stringable

static bool boolean(string|null $key = null, bool $default = false)

No description

Parameters

string|null $key
bool $default

Return Value

bool

static int integer(string $key, int $default)

No description

Parameters

string $key
int $default

Return Value

int

static float float(string $key, float $default)

No description

Parameters

string $key
float $default

Return Value

float

static Carbon|null date(string $key, string|null $format = null, string|null $tz = null)

No description

Parameters

string $key
string|null $format
string|null $tz

Return Value

Carbon|null

static object|null enum(string $key, string $enumClass)

No description

Parameters

string $key
string $enumClass

Return Value

object|null

static Collection collect(array|string|null $key = null)

No description

Parameters

array|string|null $key

Return Value

Collection

static array only(array|mixed $keys)

No description

Parameters

array|mixed $keys

Return Value

array

static array except(array|mixed $keys)

No description

Parameters

array|mixed $keys

Return Value

array

static string|array|null query(string|null $key = null, string|array|null $default = null)

No description

Parameters

string|null $key
string|array|null $default

Return Value

string|array|null

static string|array|null post(string|null $key = null, string|array|null $default = null)

No description

Parameters

string|null $key
string|array|null $default

Return Value

string|array|null

static bool hasCookie(string $key)

No description

Parameters

string $key

Return Value

bool

No description

Parameters

string|null $key
string|array|null $default

Return Value

string|array|null

static array allFiles()

No description

Return Value

array

static bool hasFile(string $key)

No description

Parameters

string $key

Return Value

bool

static UploadedFile[]|array|null file(string|null $key = null, mixed $default = null)

No description

Parameters

string|null $key
mixed $default

Return Value

UploadedFile[]|array|null

static never dd(mixed $keys)

No description

Parameters

mixed $keys

Return Value

never

static Request dump(mixed $keys = [])

No description

Parameters

mixed $keys

Return Value

Request

static void macro(string $name, object|callable $macro)

No description

Parameters

string $name
object|callable $macro

Return Value

void

static void mixin(object $mixin, bool $replace = true)

No description

Parameters

object $mixin
bool $replace

Return Value

void

static bool hasMacro(string $name)

No description

Parameters

string $name

Return Value

bool

static void flushMacros()

No description

Return Value

void

static array validate(array $rules, mixed $params)

No description

Parameters

array $rules
mixed $params

Return Value

array

static array validateWithBag(string $errorBag, array $rules, mixed $params)

No description

Parameters

string $errorBag
array $rules
mixed $params

Return Value

array

static bool hasValidSignature(bool $absolute = true)

No description

Parameters

bool $absolute

Return Value

bool