https://github.com/spatie/larabank-aggregates
Larabank built with aggregates and projectors
https://github.com/spatie/larabank-aggregates
event-sourcing laravel laravel-event-projector php
Last synced: 11 months ago
JSON representation
Larabank built with aggregates and projectors
- Host: GitHub
- URL: https://github.com/spatie/larabank-aggregates
- Owner: spatie
- Created: 2019-04-06T18:03:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-20T09:33:45.000Z (almost 2 years ago)
- Last Synced: 2025-03-02T13:11:16.269Z (over 1 year ago)
- Topics: event-sourcing, laravel, laravel-event-projector, php
- Language: PHP
- Homepage: https://spatie.be/docs/laravel-event-sourcing
- Size: 2.14 MB
- Stars: 138
- Watchers: 7
- Forks: 54
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[
](https://supportukrainenow.org)
# Larabank built with an aggregate and projectors 📽

This is an example app used in the documentation of [laravel-event-sourcing](https://spatie.be/docs/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
[
](https://spatie.be/github-ad-click/larabank-aggregates)
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
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](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
## 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
- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.