Skip to content

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

@Rocker2102

Description

@Rocker2102

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendBackend work requiredcode-qualityCode quality is improved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions