SOLID design principles Playlist ruclips.net/p/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.
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.
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.
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!
SOLID design principles Playlist
ruclips.net/p/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.
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.
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.
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 think you can make those statements on a "Service Class". Controllers are meant to treat the requests, only. That's just my opinion, ofc :)
Its tooooooo helpfull bhai. thanks
Thank you! Cheers!
Nice explanation 👌
Thank you! Cheers!
Very clear. Nice to mention that you are using the Strategy Pattern to adhere to this principle here.
awesome explanations
Thank you! Cheers!
to complicated...
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!
Quality content
Thank you
Sir I love you!, Thank you
Very easy to understand, thank sir.
This is helpful am currently working on an eCommerce site that requires multiple payment gateways, am going to try this
Glad you liked it!
Awesome
Thank you
so useful thank you so much
very nice.keep it up
It's very clear , thanks you
Thank you! Cheers!
so so helpful thanks for your effort
Thank you! Cheers!
Awesome explanation
Glad you liked it
Wow, loved it.
So glad!