© Sanjib Sinha 2019
S. SinhaBeginning Laravel https://doi.org/10.1007/978-1-4842-4991-8_9

9. Containers and Facades

Sanjib Sinha1 
(1)
Howrah, West Bengal, India
 

Ever since Laravel 4, you have been encouraged to follow the SOLID design principle when creating applications, and this is even more true in Laravel 5.8 so that you can avoid hard-coding and can write cleaner code. Let’s see what the SOLID design principle is all about.

This chapter does not have enough pages to give a detailed description of the SOLID principle, but I will discuss it in a nutshell in the first section.

Creating any application in Laravel always needs lots of class dependencies. You may use third-party packages, such as Carbon to manipulate the date and time, or you may have ...

Get Beginning Laravel: Build Websites with Laravel 5.8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.