Single Responsability Principle

Single Responsibility Principle is a coding principle where one component is responsible for one task, and nothing more.

It particularly aims at avoid multiple responsibilities in code, where several tasks are performed at the same time. This means that any modifications to that method has an impact on each of the tasks, leading to potential spillovers.

Single Responsibility Principle relies on the possibility to identify one responsibility per component, and exclude any other.

Documentation

See also How To Use Single Responsibility Principle in PHP/Laravel

Related : SOLID