fixed relation for sub-categories
This commit is contained in:
@ -93,7 +93,7 @@ class Document extends Model
|
||||
|
||||
public function category()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Setting\Category')->withDefault(['name' => trans('general.na')]);
|
||||
return $this->belongsTo('App\Models\Setting\Category')->withoutGlobalScope('App\Scopes\Category')->withDefault(['name' => trans('general.na')]);
|
||||
}
|
||||
|
||||
public function children()
|
||||
|
Reference in New Issue
Block a user