PhpDev.App
spatie/larabank-aggregates

spatie/larabank-aggregates

Stars: 127

Forks: 52

Pull Requests: 28

Issues: 5

Watchers: 6

Last Updated: 2023-07-22 16:23:14

Larabank built with aggregates and projectors

License:

Languages: PHP, Vue, Shell, Blade

https://spatie.be/docs/laravel-event-sourcing

Larabank built with an aggregate and projectors 📽

Larabank accounts page

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

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 "[email protected]", password "secret"

Credits

License

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

RELEASES

See all