This is a laravel API and backbone/marionette single page app. It was built for a prototype on demand alcohol delivery service.
bower install
to install the front-end dependencies (make sure you have bower installed first)php composer.phar install
(make sure you have composer installed first)SIMPLICITY & USABILITY > complex design patterns. We can always refactor at a later point.
performs logic that does not require any data (IE whether or not the store is open for orders, etc) certain authentication calls controller
perform required data validation calls service return response
can pull in other services if needed to communicate with other services (not other repositories)??? handles business rules (permissions, etc) by calling the repositories methods and arranging logic based on repositories response throws business exceptions calls repository fire events
performs and returns individual logic. each method performs one task strict parameters listed in each function throws find or fail exceptions
eloquent stuff