diff --git a/app/CollectionItem.php b/app/CollectionItem.php index a4578e09..7e306a33 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); + } }