LoginSignup
0
0

More than 3 years have passed since last update.

Laravelのユーザー登録を使って、カラムを増やした時のエラーの解決法

Posted at

事象

Laravelでユーザーのカラムを増やそうとした時に
スクリーンショット 2020-04-04 16.20.06.png

SQLSTATE[HY000]: General error: 1364 Field 'path' doesn't have a default value (SQL: insert into users (name, email, password, updated_at, created_at) values (a, a@a, $2y$10$wb1DAgh21cDvXZd85w2tL.gbW2KocCLWhaAY/bArGB4JOAJhjI6r., 2020-04-04 07:19:22, 2020-04-04 07:19:22))

というエラーが出た。

解決法

database.php の
'strict' => true,
の部分を
'strict' => false,
に変更する。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0