iki
138
4
Laravel

solid principles

Posted 2 months ago by iki

hey guys ,

i have a question in the solid principles , its about the single class responsibility , in laravel integrated auth they created 5 controllers or classes to handle the auth system , one for login , one for register , etc , and that follow the single class responsibility but should i follow that in other controller like posts for example ? should i make controller for add and one for edit and one for delete ? or i created only one for all posts functions and that its responsibility if i should create only one , why dont we create only one for Auth and contains its responsibility ?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.