Support the ongoing development of Laravel.io →
thepsion5

thepsion5

Joined 3 Feb 2014

Statistics

Threads 1
Replies 119
Solutions 13
Articles 0

[EXERCISE] Refactoring Exercise #1 is Complete! Discuss.

After some interest in the Laravel subreddit, I've decided to run a refactoring exercise a few times...

0 Likes
5 Replies
replied 11 years ago

What should go in a Repository

moon0326 said: I think that's why we have an application service layer and a domain service layer...

0 Likes
replied 11 years ago

What should go in a Repository

moon0326 said: Just saw your updates. If your business logic doesn't care, but your repository does...

0 Likes
replied 11 years ago

What should go in a Repository

My reasoning is that otherwise, you have to deal with one of the following scenarios: You create...

0 Likes
replied 11 years ago

What should go in a Repository

This is a simplified example of the technique I'm currently using (sans abstract classes, helper fun...

0 Likes
replied 11 years ago

What should go in a Repository

moon0326 said: @thepsion5 // Are you suggesting we should add #2 validation in a repository? Corre...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2026 Laravel.io - All rights reserved.