Error when making filament-user
i want to make a new user, but i encounter this error
SQLSTATE[42703]: Undefined column: 7 ERROR: column "updated_at" of relation "web_users" does not exist
LINE 1: insert into "web_users" ("email", "updated_at", "created_at"...
^ (Connection: pgsql, SQL: insert into "web_users" ("email", "updated_at", "created_at") values ([email protected], 2024-10-18 11:43:42, 2024-10-18 11:43:42) returning "id")
the problem is i have created_datetime instead of created_at, so how can i change the code when filament make a new user?
3 Replies
IMO, it would be better to change the
web_users
table to use created_at
so that it's consistentit's not really possible, the system is big enough
You don't have timestamps added to your web_users table, add it to the boot method of the model for web_users and set them.