Route domain check

Published 4 months ago by chapdel

Hello guy!!! i have a problem, i want to know a current domain name, why can i do that?

Best Answer (As Selected By chapdel)
Dry7

@chapdel request->root()

Dry7
Dry7
4 months ago (152,030 XP)

@chapdel request->root()

chapdel

Thank!! it work ???

chapdel

Why can i check it with blade?

Cronix
Cronix
4 months ago (786,650 XP)

Why can i check it with blade?

What does that mean?

{{ request()->root() }}

?

Please sign in or create an account to participate in this conversation.