Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -11,6 +11,8 @@ class PackPoem extends Model | ... | @@ -11,6 +11,8 @@ class PackPoem extends Model |
11 | use HasDateTimeFormatter; | 11 | use HasDateTimeFormatter; |
12 | protected $table = 'pack_poem'; | 12 | protected $table = 'pack_poem'; |
13 | 13 | ||
14 | + protected $with = ['poem']; | ||
15 | + | ||
14 | public function poem() | 16 | public function poem() |
15 | { | 17 | { |
16 | return $this->belongsTo(OnePoem::class); | 18 | return $this->belongsTo(OnePoem::class); | ... | ... |
-
Please register or login to post a comment