Problems configuring routes on apache2 server with Laravel 5.1

Asked

Viewed 617 times

0

I was doing a local project and always ran it with php artisan serve and everything was going perfectly now that I am going up the project to a machine of the digitalocean I am having problems with the routes is happening the following error: inserir a descrição da imagem aqui

it seems to me that the view is not being found, I am using an apache2 server with virtualhost pointing to the public folder of the project and so far it is okay because it falls in Welcome.blade.php quietly but the other view that are in other directories are not being found.

Would it be a directory targeting problem? or some configuration.

1 answer

0


You should pay attention (especially if you are a Windows user) that Linux servers (which in this case is the majority, especially shared ones) make a difference between upper and lower case, unlike Windows.

You should check if you have set the folders of views all characters in lower case (because this is the standard of Laravel).

If you do it on Windows will work, but not on Linux, on account of the difference between upper and lower case:

 app/
    views/
        minhaViewLegal.blade.php


view('minhaviewlegal', [])
  • yes but I do not use linux I use mac but however I know that both are based on Unix, but in case your answer is partially right, however the question is that the built-in server of Laravel recognizes this but apache does not recognize.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.