Category : nested-sets

We currently creating a project which have users with hierarchy that can change. We are using https://github.com/lazychaser/laravel-nestedset for user hierarchy and https://github.com/spatie/laravel-event-sourcing for other models event sourcing. We need ability to retrieve hierarchy from past. Can we get hierarchy (nested set) past instance with laravel-event-sourcing using event queries? (https://spatie.be/docs/laravel-event-sourcing/v5/advanced-usage/event-queries) We need get instance of user ..

Read more

Find below the controller code and blade file code, Tested & Working Controller Code: $nodes = Category::get()->toTree(); Blade File Code Returning Value = 6 {{$data->category_id}} I need to pass this variable value inside the below traverse function of NestedSet Laravel Package @php $traverse = function ($categories, $prefix = ‘-‘) use (&$traverse) { foreach ($categories as ..

Read more