Skip to content

[9.x] Add host(), httpHost(), schemeAndHttpHost() to Request - #42797

Merged
taylorotwell merged 2 commits into
laravel:9.xfrom
orange-alien:9.x
Jun 15, 2022
Merged

[9.x] Add host(), httpHost(), schemeAndHttpHost() to Request#42797
taylorotwell merged 2 commits into
laravel:9.xfrom
orange-alien:9.x

Conversation

@orange-alien

Copy link
Copy Markdown
Contributor

Added below 3 methods to "Illuminate\Http\Request".

  • host()
  • httpHost()
  • schemeAndHttpHost()

These methods wrap below 3 methods in "symfony\http-foundation\Request".

  • getHost()
  • getHttpHost()
  • getSchemeAndHttpHost()

Why to pull request

For example, "Illuminate\Http\Request" has secure() method which wrap isSecure() in "symfony\http-foundation\Request".
So, I think it would be nice to add above 3 methods too.

@taylorotwell
taylorotwell merged commit 22f4715 into laravel:9.x Jun 15, 2022
@GrahamCampbell GrahamCampbell changed the title Add host(), httpHost(), schemeAndHttpHost() to Request [9.x] Add host(), httpHost(), schemeAndHttpHost() to Request Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants