回答編集履歴
1
誤字の修正
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
自己解決しました。以下手順
|
2
2
|
Controllerに $input += ['user_id' => $request->user()->id]; を追加
|
3
|
-
|
3
|
+
migrationファイル $table->bigInteger('user_id')->unsigned(); に変更
|
4
4
|
Userモデルの scene(){}を scenes(){}の複数形に変更
|