2.4k questions
2.4k answers
99.5k users
What is encapsulation in laravel?
Encapsulation is the mechanism that binds together code and the data it manipulates, and keeps both safe from outside interference and misuse. The wrapping up of data and methods into a single unit (called class) is known as encapsulation.