daneel's avatar

Getting Request::path() in routes.php when using call() from a test

Hi, I'm trying to get the requested path through Request::path() in routes.php file. It does work when making a real request, but it doesn't when using call() from a test with phpUnit. Am I using it wrong? Is there a better way to make dynamic routing to controllers without using request path?

Thanks!

0 likes
0 replies

Please or to participate in this conversation.