0

This code:

dd(Illuminate\Http\Request::capture());

Results in this output:

dump and die log

How do I get the baseUrl that says /me instead of the baseUrl that says null.

If I do Illuminate\Http\Request::capture()->baseUrl or variations thereof I always get the null value. I want the not null value (/me).

Also looking for an explanation of why there are two properties with the same name on here, one protected and one (I think) not?

1 Answer 1

3

You would use the getter for the class:

(Illuminate\Http\Request::capture())->getBaseUrl();
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.