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 ...