質問編集履歴
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
```PHP
|
58
58
|
|
59
|
-
public function
|
59
|
+
public function BookPost()
|
60
60
|
|
61
61
|
{
|
62
62
|
|
@@ -74,7 +74,7 @@
|
|
74
74
|
|
75
75
|
```PHP
|
76
76
|
|
77
|
-
public function
|
77
|
+
public function LentPost()
|
78
78
|
|
79
79
|
{
|
80
80
|
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,6 +50,44 @@
|
|
50
50
|
|
51
51
|
|
52
52
|
|
53
|
+
**BookPost.php**
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
```PHP
|
58
|
+
|
59
|
+
public function ItemPost()
|
60
|
+
|
61
|
+
{
|
62
|
+
|
63
|
+
return $this->belongsToMany('App\LentPost');
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
**LentPost.php
|
74
|
+
|
75
|
+
```PHP
|
76
|
+
|
77
|
+
public function BookPost()
|
78
|
+
|
79
|
+
{
|
80
|
+
|
81
|
+
return $this->belongsToMany('App\BookPost');
|
82
|
+
|
83
|
+
}
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
|
90
|
+
|
53
91
|
### 試したこと
|
54
92
|
|
55
93
|
|