Тёмный
No video :(

#1: Single Responsibility Principle (SRP) in PHP, Laravel | SOLID Design Principles 

QiroLab
Подписаться 17 тыс.
Просмотров 11 тыс.
50% 1

In SOLID, the Single Responsibility Principle (SRP) states that "A class should have one and only one reason to change, meaning that a class should have only one job." If a class has multiple reasons for change that indicate more tightly-coupled designs that are more rigid and harder to maintain.
#Laravel #PHP #LaravelPHP #Qirolab
▶ SOLID design principles Playlist
• SOLID design principles
▶ Laravel’s service container
• What is Laravel’s serv...
▶ Laravel Facades: What are Facades used in Laravel & how to use them in App with examples?
• Laravel Facades: What ...
▶ How to modify created_at & updated_at timestamps in Laravel?
• How to modify created_...
▶ How to use UUID as the Primary key instead of auto-increment IDs in the Laravel application?
• How to use UUID as Pri...
▶ Laravel Model Lifecycle Events and How to use Observers in Laravel?
• Laravel Model Lifecycl...
▶ #1: SPA Authentication using Laravel Sanctum
• #1: SPA Authentication...
▶ #2: API Token Authentication using Laravel Sanctum
• #2: API Token Authenti...
▶ Laravel Eloquent Relationships
• Laravel Eloquent Relat...
▶ Impersonating Users in Laravel And Example of TDD using PHPUnit
• Impersonating Users in...
▶ Laravel Macros - How to create a Macro? How to create a class-based macro using mixin?
• Laravel Macros - How t...
▶ Laravel Packages
• Laravel Packages
▶ Laravel Backup Tutorial
• Laravel Backup Tutorial
▶ Laravel Fortify Tutorial
• Laravel Fortify Tutorial
▶ Laravel Passport Tutorials
• Laravel Passport Tutor...
▶ Setup Web Development Environment Ubuntu
• Setup Web Development ...
⌚ Timestamps:
00:00 Introduction / Definition
00:41 Example 1
10:57 Example 2 (in Laravel application)
Support my work:
1. On BuyMeACoffee: www.buymeacoff...
2. On Patreon: / qirolab
𝐃𝐢𝐠𝐢𝐭𝐚𝐥𝐎𝐜𝐞𝐚𝐧 𝐑𝐞𝐟𝐞𝐫𝐫𝐚𝐥
m.do.co/c/e740...
Also, follow us on:
𝐅𝐚𝐜𝐞𝐛𝐨𝐨𝐤: qirolab
𝐓𝐰𝐢𝐭𝐭𝐞𝐫: / qirolab

Опубликовано:

 

15 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@QiroLab
@QiroLab 2 года назад
SOLID design principles Playlist ru-vid.com/group/PL1TrjkMQ8UbWsspx0ABrsWl6ENnLEq9AH ⌚ 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
@Laflamablanca969
@Laflamablanca969 2 года назад
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.
@QiroLab
@QiroLab 2 года назад
This is good suggestion! Thanks
@Laflamablanca969
@Laflamablanca969 2 года назад
@@QiroLab thanks for the great video! Also good to see you a very humble and don’t claim to know everything!
@mddider9174
@mddider9174 2 года назад
Extraordinary. easily explained. waiting for the next concept
@QiroLab
@QiroLab 2 года назад
Thank you! Cheers!
@softwaredeveloper4443
@softwaredeveloper4443 2 года назад
You are always doing great job your concept are very good for learner's. Eloquent series are very helpful for professional experience as well
@QiroLab
@QiroLab 2 года назад
Thanks a lot
@sirajul-anik
@sirajul-anik 2 года назад
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?
@PytheraRox
@PytheraRox 2 года назад
I agree with you
@sameera-dananjaya-wijerathna
Really helpful ..thanks for your effort
@QiroLab
@QiroLab Год назад
Most welcome!
@MrRajaoui49
@MrRajaoui49 2 года назад
Good explained! Thanks
@thigarette1
@thigarette1 2 года назад
Well explained
@varunmasih5602
@varunmasih5602 2 года назад
Great work keep doing 👍
@wilsonwg
@wilsonwg 2 года назад
Thank you! Very good!
@QiroLab
@QiroLab 2 года назад
Thank you too!
@girjeshkumar7831
@girjeshkumar7831 2 года назад
Very nice
@FranciscoJunior29
@FranciscoJunior29 2 года назад
Good job! Very cool!
@QiroLab
@QiroLab 2 года назад
Thank you! Cheers!
@dilmurod9820
@dilmurod9820 2 года назад
why you do not create interface export and make base model __contruct and write interface for exporting depends on type format
@mr_afshar9701
@mr_afshar9701 9 месяцев назад
what about the Service class ?! it has multiple responsibilities .
@Ehsankhan0577
@Ehsankhan0577 2 года назад
thanks for the tutorial kindly also share code/github repo
@AbderrahmanFodili
@AbderrahmanFodili Год назад
Qiro: single responsibity Me: meeeeh . ok not a big deal Qiro : one reason to change Me : I'm sold . take my money
@QiroLab
@QiroLab 7 месяцев назад
Thank you! Cheers!
@shakirbaba3978
@shakirbaba3978 2 года назад
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
Далее
19 Laravel Ecosystem Explained - Part 1
10:09
Просмотров 44 тыс.
SOLID Principles in Laravel & PHP: A Practical Guide
27:49