Laravel Remember_token不再由Laravel创建 [英] Laravel Remember_token is no longer being created by Laravel

查看:234
本文介绍了Laravel Remember_token不再由Laravel创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚从mysql切换到PostgreSQL数据库.现在,我无法创建用户,因为自从我切换到PostgreSQL后,Laravel似乎不再生成Remember_token,并且我收到此错误:

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)"

发生了什么事?

推荐答案

是的,记住令牌必须为可空值,谢谢mohebifar

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

这篇关于Laravel Remember_token不再由Laravel创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆