SOLID design principles Playlist ru-vid.com/group/PL1TrjkMQ8UbWsspx0ABrsWl6ENnLEq9AH ⌚ Timestamps: 00:00 Introduction / Definition 01:48 Example 1 19:00 Example 2 25:25 Example 3 Support my work: 1. On BuyMeACoffee: www.buymeacoffee.com/qirolab 2. On Patreon: www.patreon.com/qirolab Also, follow us on: 𝐅𝐚𝐜𝐞𝐛𝐨𝐨𝐤: fb.com/qirolab 𝐓𝐰𝐢𝐭𝐭𝐞𝐫: twitter.com/qirolab
I believe all you need do after setting up your files the way he did here, is implement what he did in the web route closure in your controller, then simply call the controller class and function in the web route with no closure this time.
perfect videos ! Just one single note here to mention that your SalesReport Class still violates SRP , cause your export method shoulnt be inside of that class, because the responsibility of that class should only be the query.
IMO sales reports should not know how you want to export the data, thus the export method doesn't make sense to me in the report class. rather the exporter classes with sales data made sense.
Nice tutorial. The multiple payment gateway is really nice. I just wanted to ask if i want to dynamically select the payment gateway to use based on post request received from the frontend do I have still need to fall back to if else statements on my controller?
I understand it might seem complicated at first. I felt the same when I first encountered it. Try watching it a couple of times, and it'll start making more sense. Don't hesitate to ask if you have any specific questions!