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 ..
I have a form request where I check for an existing user for instance ’email’ => [‘required’, ‘exists:users’]. I know a request is made to DB to check for an existing user right? What happens when I need the user object elsewhere? Say, in a middleware? in a service class? and event listener/handler (without queues)? ..
I have a project that implements an event source using https://github.com/spatie/laravel-event-sourcing. And now I want to use MongoDB to store the event store, using https://github.com/jenssegers/laravel-mongodb. But I get stuck to implement both. Both packages required to extends their own class. This is my custom model for the event source. <?php namespace AppModelsMongoDB; use SpatieEventSourcingStoredEventsModelsEloquentStoredEvent; use ..