The repository pattern is one of the simplest patterns to implement in terms of code and abstraction complexity, but it is also one of the most misrepresented and misused concepts in real-world scenarios and applications. I’ll try to express my thoughts on this. The concept Let’s start with the repository concept. How it appears and […]
Laravel
Unify Laravel API responses with custom Success and Error classes
When developing an API that is for internal use, meaning, the API will not be used by external clients and applications but only by one single domain/client, we rarely take care of unified format of responses, particularly for POST, PATCH and PUT requests. Also, not infrequently, we struggle with time and people during the development […]
Strategy design pattern in PHP
Design patterns are usually one of the most interesting topics in software programming. Patterns, schemes, algorithms, they are software concepts and solutions for commonly occurring issues in software engineering which are created and designed to make the interaction between classes and objects better, smoother, more elegant and probably the most important, reusable. As interesting this […]
Re-index your Elasticsearch data with zero downtime
As I promised in my previous blog post, today I will explain how to re-index your Elasticsearch index data with zero downtime. As I elaborated in the previous blog post, using Elasticsearch as your primary data storage is probably not the best solution, so you should keep your data using more persistent friendly database system […]
How to re-index your Elasticsearch data with Laravel Command
Laravel is a very powerful PHP framework that is widely used for web based applications of any size. Personally, I can say that I’ve been using it for years for a lot of the projects I’ve been working on and I must say, it’s a powerful tool. The first time when one of the projects […]