Mar 1, 2015
0
Level 1
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!
Please or to participate in this conversation.