0
votes

I just switched to a PostgreSQL Database from mysql. Right now I cannot create users because since I switched to PostgreSQL Laravel seems to no longer be generating a remember_token, and I receive this error:

"SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "remember_token" violates not-null constraint DETAIL: Failing row contains (blah blah blah)"

what has happened?

1
Did you make the field nullable in SchemaBuilder ? $table->string('remember_token')->nullable().Mohebifar
no I did not, I did not know it was supposed to be nullable, I will try thatMarcus Ruddick

1 Answers

0
votes

Yes, the remember token needed to be nullable, thank you mohebifar