0
I created a website on a machine and it works fine.
I copied the folder to another computer, installed Composer, typed the commands composer update
, php artisan migrate
and php artisan app:name farmacia
. However when accessing, I get the error
NotFoundHttpException
Sorry, the page you are Looking for could not be found.
But if I access the direct link localhost/farmacia/public/municipios
he accesses in good.
What can it be?
you ran php Artisan key:generate?
– Ademilson Santana da Silva
what is the text of Exception?
– Ademilson Santana da Silva
Another site means just another folder or also another server?
– fernandosavio
@fernandosavio went to another computer
– Italo Rodrigo
@Ademilsonsantanadasilva the text is
Sorry, the page you are looking for could not be found.
, king rotate this command to see– Italo Rodrigo
Take a look at the file
.env
there will be server specific settings.– fernandosavio
@fernandosavio apparently everything is ok in the file
.env
– Italo Rodrigo
only by the address I already see problems, it is bad configured where the folder
public
is the root of your application, any other configuration may have problems as you are having ... Configure your application to start the web server in the folderpublic
and use the routes configured in your system smoothly from there.– novic
Hi @Virgilionovic I’m a newcomer to the Laravel and it’s the first time I do this. I couldn’t even get the public home (I’m using wamp on my local pc to test)
– Italo Rodrigo