Problem in deployable larvel application - HostGator

1

I've deployed an application to Hostgator, but the framework routines are not running. I have a method that does the user validation logged in, if it does not find any it redirects the Login screen

if (!session()->has('userdata')) {
    return redirect()->route('login');
}

The deploy process instructed by Hostgator support was as follows

  • I installed the SSH laravel with the command (ignoring the php change processes and Composer installation):

    composer create-project laravel / laravel --prefer-dist myProject

  • Uploaded via FTP I overwritten the files created by the command (views, controllers)

  • I created a new key, replacing in the .env file

  • Even after the process the App continues in the same way, as it does not identify the user it redirects to the login page.

    Has anyone ever had a similar problem?

        
    asked by anonymous 29.08.2017 / 21:45

    1 answer

    0

    Take a look at write permissions in path storage. See the doc in the "Directory Permissions" section. link

        
    30.04.2018 / 01:17