1
What I need
I want to check if a blank Laravel project is working properly on the development server, IE, I just want to see if at least it loads the view, and then I’ll do some tests.
What I did
I downloaded and installed Laravel locally, set up the app/path
in config/app.php
and passed the folder to the server. When accessing the folder "public" I received a blank screen, without any error. Below follows the code exchange I made in the route file. I changed it to play on the screen a Hello World
and it worked.
OBS: It is running normally on my computer, calling the standard view of Laravel 5.
The tested code
Route::get('/', function()
{
return 'Hello World';
});
The standard code
Route::get('/', 'WelcomeController@index');
Config/App.php
'url' => 'http://endereco_do_servidor/pasta/pasta_meu_projeto/',
Permission in folder
Just to let you know: the project is as follows on the server http://endereco_do_servidor/pasta/pasta_meu_projeto/',
. I have the ip address of the development server, within it there are 3 folders with each type of project, within one of these folders there are other folders, each for different projects, and one of these is the project I just created.
I was informed that it was necessary to give the necessary permissions, so I asked them to give a chmod 775 for all the folders inside it.
find . -type d -exec chmod 775 {} \;
It could be many things, your server has the sufficient requirements? Try following the documentation instructions, as changing the url address in the app/config is only relevant for console commands.
– gmsantos
@gmsantos Inside the folder I ran the command "find . -type d -exec chmod 775 {} ;" to release the permissions.
– Allan Ramos
And that solved the problem?
– gmsantos
Good, I still don’t understand where the question is! From what I read it’s all working...
– Ricardo Cruz