0
I developed an application PHP
using Laravel on a computer, when I copied this same project to another computer and run it, the path error occurs below:
NotFoundHttpException in
C:\wamp64\www\BuscaPet\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php
line 161: in RouteCollection.php line 161
at RouteCollection->match(object(Request)) in Router.php line 780
at Router->findRoute(object(Request)) in Router.php line 610
at Router->dispatchToRoute(object(Request)) in Router.php line 596
at Router->dispatch(object(Request)) in Kernel.php line 267
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in CheckForMaintenanceMode.php line 46
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php line 104
at Pipeline->then(object(Closure)) in Kernel.php line 149
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116
at Kernel->handle(object(Request)) in index.php line 54
In the computer I performed the development, when running, when I access the other pages, everything happens normally without errors, but the same project on another computer points out the error of routes when accessing other pages.
Stackoverflow in Portuguese, make the appropriate translation into Portuguese!
– novic
Translated Virgilio, thank you.
– Jonatas Dutka
Only with this information I will not be able to help, try, put a step by step of what was this transport from one machine to another?
– novic
Computer 1 1º Installation of Wampserver 2º Installation of the Larave 5.3 framework, using the Composer 3º Executed the command 'New Format' by cmd, inside the folder c:/Wamp64/www 4º All website development in this project created. Computer 2 1º I copied the application inside the folder c:/Wamp64/www/application 2º When running the application and accessing another page, it shows the error again.
– Jonatas Dutka
wamp folder starts is
c:/Wamp64/www/
and you created a subfolder and put the Laravel project?– novic
Exactly, the command 'New Windows' executed in cmd c: wamp64 www> creates the directory Myapplication I copied the folder Myapplication of this directory and on the other computer pasted within c:/wamp64/www/(Pasted)
– Jonatas Dutka
Laravel has a configuration that the site has to be started in the folder
public/
for everything to work perfect, you have to configure your wamp by configuring this virtual directory for it to work, otherwise it gives these problems!– novic
Thanks Virgilio, it worked.
– Jonatas Dutka
It would be interesting if Virgilio put the comment as a response and Jonatas accepted, to stay for registration on the site...
– Laerte
The Laravel has a configuration that the site has to be started in the public folder/ for everything to work perfect, you have to configure your wamp by configuring this virtual directory for it to work, otherwise it gives these problems! Credits for the Virgilio Novic
– Jonatas Dutka