質問編集履歴
1
Barいらない
title
CHANGED
File without changes
|
body
CHANGED
@@ -69,16 +69,6 @@
|
|
69
69
|
return $this->belongsTo(Product::class);
|
70
70
|
}
|
71
71
|
}
|
72
|
-
|
73
|
-
class Bar extends Model
|
74
|
-
{
|
75
|
-
protected $fillable = ['product_id', 'name'];
|
76
|
-
|
77
|
-
public function product(): BelongsTo
|
78
|
-
{
|
79
|
-
return $this->belongsTo(Product::class);
|
80
|
-
}
|
81
|
-
}
|
82
72
|
```
|
83
73
|
|
84
74
|
```php
|