質問編集履歴
1
Barいらない
test
CHANGED
File without changes
|
test
CHANGED
@@ -140,26 +140,6 @@
|
|
140
140
|
|
141
141
|
}
|
142
142
|
|
143
|
-
|
144
|
-
|
145
|
-
class Bar extends Model
|
146
|
-
|
147
|
-
{
|
148
|
-
|
149
|
-
protected $fillable = ['product_id', 'name'];
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
public function product(): BelongsTo
|
154
|
-
|
155
|
-
{
|
156
|
-
|
157
|
-
return $this->belongsTo(Product::class);
|
158
|
-
|
159
|
-
}
|
160
|
-
|
161
|
-
}
|
162
|
-
|
163
143
|
```
|
164
144
|
|
165
145
|
|