diff --git a/app/CollectionItem.php b/app/CollectionItem.php index a4578e09c..7e306a33e 100644 --- a/app/CollectionItem.php +++ b/app/CollectionItem.php @@ -6,5 +6,8 @@ use Illuminate\Database\Eloquent\Model; class CollectionItem extends Model { - // + public function collection() + { + return $this->belongsTo(Collection::class); + } }