/larabank-aggregates

Larabank built with aggregates and projectors

Primary LanguagePHP

Larabank built with an aggregate and projectors 📽

Larabank accounts page

This is an example app used in the documentation of laravel-event-sourcing.

These rules are implemented:

  • a user cannot go below -5000 on an account
  • when hitting the limit three times in a row a loan proposal mail must be sent

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Getting started

  • Clone the repo
  • copy .env.example to .env
  • set the DB_ environment variables in .env to your liking
  • create a database with the name specified in DB_DATABASE
  • composer install
  • yarn, yarn run dev (or the npm equivalents)
  • migrate and seed the database with php artisan migrate:fresh --seed
  • you can now log in with user "user@larabank.com", password "secret"

Credits

License

The MIT License (MIT). Please see License File for more information.