SOLID design principles Playlist czcams.com/play/PL1TrjkMQ8UbWsspx0ABrsWl6ENnLEq9AH.html ⌚ Timestamps: 00:00 Introduction / Definition 00:41 Example 1 10:57 Example 2 (in Laravel application) 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
Good job. Instead of request->only, you could just use request->validated() which returns an array of the items that were validated in your custom form request class.
IMO, you shouldn't pass the request, rather pass a DTO. In that way, you can make sure that the properties exist. Because in cases it can happen that you may need to create a post from CLI, or somewhere else. But binding to that request will make creation hard, isn't it?
SOLID design principles Playlist
czcams.com/play/PL1TrjkMQ8UbWsspx0ABrsWl6ENnLEq9AH.html
⌚ Timestamps:
00:00 Introduction / Definition
00:41 Example 1
10:57 Example 2 (in Laravel application)
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
Good job. Instead of request->only, you could just use request->validated() which returns an array of the items that were validated in your custom form request class.
This is good suggestion! Thanks
@@QiroLab thanks for the great video! Also good to see you a very humble and don’t claim to know everything!
Extraordinary. easily explained. waiting for the next concept
Thank you! Cheers!
You are always doing great job your concept are very good for learner's. Eloquent series are very helpful for professional experience as well
Thanks a lot
IMO, you shouldn't pass the request, rather pass a DTO. In that way, you can make sure that the properties exist. Because in cases it can happen that you may need to create a post from CLI, or somewhere else. But binding to that request will make creation hard, isn't it?
I agree with you
Good explained! Thanks
Great work keep doing 👍
Well explained
Really helpful ..thanks for your effort
Most welcome!
what about the Service class ?! it has multiple responsibilities .
Thank you! Very good!
Thank you too!
Very nice
Good job! Very cool!
Thank you! Cheers!
why you do not create interface export and make base model __contruct and write interface for exporting depends on type format
thanks for the tutorial kindly also share code/github repo
Qiro: single responsibity
Me: meeeeh . ok not a big deal
Qiro : one reason to change
Me : I'm sold . take my money
Thank you! Cheers!
I have a simple class but not able to implement SOLID principle on that. Could help me to implement this. I can share the class file