回答編集履歴
2
修正
answer
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
多対多の設計がおかしいです。
|
2
|
-
[https://readouble.com/laravel/5.7/ja/eloquent-relationships.html#many-to-many](
|
2
|
+
[https://readouble.com/laravel/5.7/ja/eloquent-relationships.html#many-to-many](https://readouble.com/laravel/5.7/ja/eloquent-relationships.html#many-to-many)
|
3
3
|
|
4
4
|
中間テーブルはModelにするものではありませんよ。
|
5
5
|
|
1
修正
answer
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
多対多の設計がおかしいです。
|
2
|
-
[
|
3
|
-
https://readouble.com/laravel/5.7/ja/eloquent-relationships.html#many-to-many]( https://readouble.com/laravel/5.7/ja/eloquent-relationships.html#many-to-many)
|
2
|
+
[https://readouble.com/laravel/5.7/ja/eloquent-relationships.html#many-to-many]( https://readouble.com/laravel/5.7/ja/eloquent-relationships.html#many-to-many)
|
4
3
|
|
5
4
|
中間テーブルはModelにするものではありませんよ。
|
6
5
|
|