0

Can't login to Laravel system

Use my larval project after a long time and I run migrate:fresh command and it work but I Can't insert data into user table in order to login to the system , I have tried both way through user interface and Phpmyadmin. Through Phpmyadmin the data is inserted but cannot login with that data, and through user interface the data is not passing to the database what is the problem?

6th Jun 2023, 7:39 PM
Saber Ahmadzai
Saber Ahmadzai - avatar
3 Answers
+ 3
Are you sure the insertion is successful? Did you commit after inserting new rows, or do you have autocommit enabled? How are you setting passwords for the user? You mentioned that you are able to log in to phpmyadmin as administrator, so you should check the documentation about user management. https://docs.phpmyadmin.net/en/latest/privileges.html
7th Jun 2023, 3:49 AM
Tibor Santa
Tibor Santa - avatar
0
Tibor Santa for password i used (Hash), previously it worked fine and user is root without password. When i insert data in database with sign up register page, it shows me the same page without passing data in database.
7th Jun 2023, 6:15 AM
Saber Ahmadzai
Saber Ahmadzai - avatar
0
When you call php artisan migrate:fresh It delete all recordes in database That is the probloem when you want to log in there is no data in database First you should insert data after that you can log in to your dashboard
8th Jun 2023, 7:05 PM
Abdulraziq Rohilli
Abdulraziq Rohilli - avatar