Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code using single-class-single-functionality principle (using Service classes) #39

Open
Rocker2102 opened this issue Aug 27, 2021 · 0 comments
Labels
backend Backend work required code-quality Code quality is improved

Comments

@Rocker2102
Copy link
Member

Rocker2102 commented Aug 27, 2021

Move business logic from controllers to service class (normally present in App\Services namespace).
This will help in reducing duplicated code.

References:
https://dev.to/fhsinchy/laravel-service-classes-explained-3m7p
https://medium.com/@remi_collin/keeping-your-laravel-applications-dry-with-single-action-classes-6a950ec54d1d

@Rocker2102 Rocker2102 added backend Backend work required code-quality Code quality is improved labels Aug 27, 2021
@Rocker2102 Rocker2102 changed the title Update code using single-class-single-functionality principle Update code using single-class-single-functionality principle (using Service classes) Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend work required code-quality Code quality is improved
Projects
None yet
Development

No branches or pull requests

1 participant