Best laravel framework open-source packages.

Laravel 5.2 pattern

Example Laravel structure, implement Service Provider Pattern, Contract Pattern, Dependency Injection, Repository and Entity Pattern
Updated 2 years ago

Sample Implementation Patterns In Laravel 5.2

This repository contains sample implementation of some design pattern such as : Depedecy Injection, IoC container by Laravel to resolve dependency injections, also Clean Architecture.

Our core app located in App/MyApp , see this structure under "App" directory and those explanation :

app/
      MyApp/
            Contract/ ----------> Location of Interfaces
            Entity/ ----------> Location of Data Structure
            Provider/ ----------> Providers location, where service and providers binding
            Repository/ ----------> Location of Class that implement Contract that used by Service
            Service/ ----------> Business rule code located, no direct use vendor package / entity
      Http/
            Controllers/ ----------> controller just calling service
            ...
vendor/
...

Tags contracts php