package updates
This commit is contained in:
@@ -108,7 +108,7 @@ class Request extends SymfonyRequest implements Arrayable, ArrayAccess
|
||||
{
|
||||
$query = $this->getQueryString();
|
||||
|
||||
$question = $this->getBaseUrl().$this->getPathInfo() == '/' ? '/?' : '?';
|
||||
$question = $this->getBaseUrl().$this->getPathInfo() === '/' ? '/?' : '?';
|
||||
|
||||
return $query ? $this->url().$question.$query : $this->url();
|
||||
}
|
||||
@@ -121,7 +121,7 @@ class Request extends SymfonyRequest implements Arrayable, ArrayAccess
|
||||
*/
|
||||
public function fullUrlWithQuery(array $query)
|
||||
{
|
||||
$question = $this->getBaseUrl().$this->getPathInfo() == '/' ? '/?' : '?';
|
||||
$question = $this->getBaseUrl().$this->getPathInfo() === '/' ? '/?' : '?';
|
||||
|
||||
return count($this->query()) > 0
|
||||
? $this->url().$question.Arr::query(array_merge($this->query(), $query))
|
||||
@@ -179,7 +179,7 @@ class Request extends SymfonyRequest implements Arrayable, ArrayAccess
|
||||
/**
|
||||
* Determine if the current request URI matches a pattern.
|
||||
*
|
||||
* @param dynamic $patterns
|
||||
* @param mixed ...$patterns
|
||||
* @return bool
|
||||
*/
|
||||
public function is(...$patterns)
|
||||
@@ -196,7 +196,7 @@ class Request extends SymfonyRequest implements Arrayable, ArrayAccess
|
||||
/**
|
||||
* Determine if the route name matches a given pattern.
|
||||
*
|
||||
* @param dynamic $patterns
|
||||
* @param mixed ...$patterns
|
||||
* @return bool
|
||||
*/
|
||||
public function routeIs(...$patterns)
|
||||
@@ -207,7 +207,7 @@ class Request extends SymfonyRequest implements Arrayable, ArrayAccess
|
||||
/**
|
||||
* Determine if the current request URL and query string matches a pattern.
|
||||
*
|
||||
* @param dynamic $patterns
|
||||
* @param mixed ...$patterns
|
||||
* @return bool
|
||||
*/
|
||||
public function fullUrlIs(...$patterns)
|
||||
|
||||
Reference in New Issue
Block a user