re: Cleaning up your codebase with a clean architecture VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thanks for interesting article! A minor mistake in class SetProfileImage: class SetProfileImage { private $image_store; // Is this $image_...
 

Hi Tuam,

Thanks for pointing that out, I'll correct it shortly.

You are correct, the above get call would return an eloquent model, which isn't ideal. If I were to take this code example further, I would create a domain class for User that is completely independent from Eloquent, and then translate from it to the Eloquent model inside the repository.

code of conduct - report abuse