This Laravel package can help you setting up aggregates, projectors and reactors easily in Laravel 5.

laravel package



laravel-event-projector can be installed via composer:

composer require spatie/laravel-event-projector:^2.0.0

You need to publish and run the migrations to create the stored_events table:

php artisan vendor:publish --provider="Spatie\EventProjector\EventProjectorServiceProvider" --tag="migrations"

php artisan migrate

You must publish the config file with this command:

php artisan vendor:publish --provider="Spatie\EventProjector\EventProjectorServiceProvider" --tag="config"

Source Code