Implementing-Laravel
Implementing-Laravel copied to clipboard
Directory tree incorrect
Check to see if this error still exists:
In the book you show the Eloquent models residing under the Impl/models directory. In the GitHub project page they reside under app/models. The autoloader can't load them if they are under the Impl/models directory without a binding, which the book doesn't have or explain.
The directory tree is incorrect in "The Repository Pattern" chapter right after the sentence: "Here’s our file structure again, with the ArticleInterface and EloquentArticle files:" (Kindle Locations 1104-1105) and right before the sentence: "With our new implementation, we can revisit our controller: app/ controllers/ ContentController.php" (Kindle Locations 1116-1117). It shows the models directory residing under the Impl directory. This is from the latest version from Leanpub.