The following reference is made in the implicit controller, but when $ request-& amp; gt; path () is used, the error $ request variable does not exist. UseIlluminateHttpRequest; useAppHttpRequests; useAppHttpControllersController; Requset: path (). Which of the following statements does not work... the following reference is made in the implicit controller, but when $ request-> path () is used, the error $ request variable does not exist.
Use Illuminate \ Http \ Request;
Use App \ Http \ Requests;
Use App \ Http \ Controllers \ Controller;
Requset: path () does not work either. Can anyone tell me how to solve this problem.
Reply content:
The following reference is made in the implicit controller, but when $ request-> path () is used, the error $ request variable does not exist.
Use Illuminate \ Http \ Request;
Use App \ Http \ Requests;
Use App \ Http \ Controllers \ Controller;
Requset: path () does not work either. Can anyone tell me how to solve this problem.
DirectUse Requset; echo Requset: path ();
UseRequest ()-> path ();