mfadhlillahrasyid's avatar

Error when i Try to create Register Page with Model & Controller

Im Sorry im new in Laravel, i try to create my first project with laravel 11, can u help me for this problem ??

SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: users.password (Connection: sqlite, SQL: insert into "users" ("name", "email", "role", "updated_at", "created_at") values ($2y$12$w284ozAAod7AxK2FXggAPuVetsEfLIs9Rqatrl1WBCqPwbreEPOMG, [email protected], admin, 2024-06-03 15:25:35, 2024-06-03 15:25:35))

0 likes
3 replies
Snapey's avatar

you cannot create a user without setting a password.

You have a hashed field, which might be the password but you are sending it to a 'role' field.

Please or to participate in this conversation.