Open argb opened 9 years ago
I have fixed it, return UserRepository::createWithRoles( [ 'UserID' => 1, 'Name' => 'Anonymous', 'Email'=> 'argb@live.cn', 'Password' => str_random(64), 'HashMethod' => 'random', ], add the Email field.
Thanks argb.. also had same problem... and added fix on this file "vendor\bishopb\laravel-forums\src\services\UserMapperAllGuestAccess.php"
when i enter http://localhost/forum,i saw that error. before this,i finished steps below: 1,Install the migrations: php artisan forum:migrate 2,Connect Vanilla and Laravel: php artisan forum:connect.
full error tips: SQLSTATE[HY000]: General error: 1364 Field 'Email' doesn't have a default value (SQL: insert into
GDN_User
(UserID
,Name
,Password
,HashMethod
,DateInserted
,DateUpdated
,InsertIPAddress
,UpdateIPAddress
) values (1, Anonymous, oF6v1Lv9aJmtnHqFgYYNetSa1BbFtAcBSqoj1KTr2ruLxDh20AClzgVuYfc8M1dI, random, 2014-12-14 12:59:53, 2014-12-14 12:59:53, 127.0.0.1, 127.0.0.1))