2

I have a Laravel app in my web server. I wanted to develop it in my local server, so I pushed it to my git server first, then clone to my local server. After that, first I installed composer and run migrations.

When I open the app from browser, I see login screen. If I use wrong password, It returns an error, however if I enter my correct password, it redirects to login page again.

At first, I thought it is happening because of my local configurations. Then, I copied my web server configuration to another folder. If I use old database config, it works, on the other hand if I change database settings and migrate again, face with same problem.

PS: After every new setup, I generate a new key. I'm not sure if I should change anything else. I changed session driver from file to cookie, but didn't work. I also removed all storage/sessions folder.

How can I fix that problem?

Edit: My Codes (Routes, Controller and Config): http://laravel.io/bin/MkG7z

Sabri Karagönen
  • 2,212
  • 1
  • 14
  • 28

0 Answers0