Skip to content

Commit

Permalink
Use configured category model for subcategories (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
royduin authored Dec 8, 2023
1 parent 71d90d2 commit d874d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function getUrlAttribute(): string

public function subcategories()
{
return $this->hasMany(self::class, 'parent_id', 'entity_id');
return $this->hasMany(config('rapidez.models.category'), 'parent_id', 'entity_id');
}

public function products(): HasManyThrough
Expand Down

0 comments on commit d874d79

Please sign in to comment.