DEV Community

loading...

Discussion on: Becoming a better Laravel developer by using the SOLID design principles. Part 1

Collapse
msamgan profile image
Mohammed Samgan Khan

now as you mentioned in comment "As controller store method meant to store data not validation of data.

So we extract validation logic to seprate class called Request and in this way we implemented single responsibility principle."

now its clear..

Thread Thread
abrardev99 profile image
Forem Open with the Forem app