refs #2662 - ( #39afx2h )

This commit is contained in:
Cüneyt Şentürk
2022-10-10 17:46:50 +03:00
parent 815faf82fa
commit ea5ce7f02b
3 changed files with 43 additions and 16 deletions

View File

@ -94,6 +94,7 @@ class Category extends Model
{
return $this->resolveRouteBindingQuery($this, $value, $field)
->withoutGlobalScope(Scope::class)
->getWithoutChildren()
->first();
}