Open irvine48 opened 1 year ago
In your model file,
use NodeTrait; public function ordered_children() { return $this->children()->orderBy('_lft'); }
substitute your eager loading children method with method you newly create with defined scope.
Enjoy
In your model file,
substitute your eager loading children method with method you newly create with defined scope.
Enjoy