Getting the Default Request Class

Problem

You want to see what the class is that Laravel uses to build the request.

Solution

Use the App::requestClass() method.

echo "Request Class = ", App::requestClass();

Discussion

The same method is used for changing the default request class.

But you must call the method differently. See Changing the Default Request Class.

comments powered by Disqus

Recommended by us