#2: Open-Closed Principle (OCP) in PHP, Laravel | SOLID Design Principles

Опубликовано: 04 Ноябрь 2024
на канале: QiroLab
7,855
267

Open-closed Principle (OCP) states "Software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification." This implies that entities should be extendable without altering the class itself. The main idea of this principle is to keep the current code from breaking when you add new features.
#Laravel #PHP #LaravelPHP #Qirolab

▶ SOLID design principles Playlist
   • SOLID design principles  

▶ What is SOLID design principles in PHP, Laravel? Why should we use them?
   • What is SOLID design principles in PH...  

▶ #1: Single Responsibility Principle (SRP)
   • #1: Single Responsibility Principle (...  

▶ How to modify created_at & updated_at timestamps in Laravel?
   • How to modify created_at & updated_at...  

▶ How to use UUID as Primary key instead of auto-increment IDs in Laravel application?
   • How to use UUID as Primary key instea...  

▶ Laravel Model Lifecycle Events and How to use Observers in Laravel?
   • Laravel Model Lifecycle Events and Ho...  

▶ #1: SPA Authentication using Laravel Sanctum
   • #1: SPA Authentication using Laravel ...  

▶ #2: API Token Authentication using Laravel Sanctum
   • #2: API Token Authentication using La...  

▶ Laravel Eloquent Relationships
   • Laravel Eloquent Relationships  

▶ Impersonating Users in Laravel And Example of TDD using PHPUnit
   • Impersonating Users in Laravel And Ex...  

▶ Laravel Macros - How to create a Macro? How to create a class-based macro using mixin?
   • Laravel Macros - How to create a Macr...  

▶ Laravel Packages
   • Laravel Packages  

▶ Laravel Backup Tutorial
   • Laravel Backup Tutorial  

▶ Laravel Fortify Tutorial
   • Laravel Fortify Tutorial  

▶ Laravel Passport Tutorials
   • Laravel Passport Tutorials  

▶ Setup Web Development Environment Ubuntu
   • Setup Web Development Environment Ubuntu  

⌚ Timestamps:
00:00 Introduction / Definition
01:48 Example 1
19:00 Example 2
25:25 Example 3

Support my work:
1. On BuyMeACoffee: https://www.buymeacoffee.com/qirolab
2. On Patreon:   / qirolab  

𝐃𝐢𝐠𝐢𝐭𝐚𝐥𝐎𝐜𝐞𝐚𝐧 𝐑𝐞𝐟𝐞𝐫𝐫𝐚𝐥
https://m.do.co/c/e740238537d0

Also, follow us on:
𝐅𝐚𝐜𝐞𝐛𝐨𝐨𝐤: https://fb.com/qirolab
𝐓𝐰𝐢𝐭𝐭𝐞𝐫:   / qirolab