【发布时间】:2016-03-28 09:01:00
【问题描述】:
我正在尝试使用 Sentry 创建用户,但用户表上的密码字段为 user_password。
$user = Sentry::createUser(array(
'full_name' => $input['name'],
'email' => $input['email'],
'user_password' => $input['password']
));
但它一直抛出错误,用户 [@.com] 需要密码,没有给出。
当我将 user_password 更改为密码时,它会抛出错误,找不到列:1054 '字段列表'中的未知列'密码'。
【问题讨论】:
标签: php laravel laravel-4 cartalyst-sentry