Challenge: you need a flexible (swap in other repository implementations) way to display some kind of resource. Let's say, Posts. What does your folder structure look like?
Requirements:
- Repository implements an interface
- Must show at least one implementation of the interface (Eloquent version is fine)
- The interface is injected into your PostsController.
- Show where you register your IoC bindings
- Show folder structure. Where are interfaces/repositories stored?
To register the interface to the proper implementation I do just how Fideloper does it except I stick my ServiceProviders for my app in a ServiceProviders/ dir inside my app/AppName/ dir. My repo is a bit different but I don't think you care about that implementation so much.