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?