Demystifying Value Objects in PHPValue Objects are simple PHP classes that allow us to compare the values of an entity that could be in different formats. For example, money could be in multiple currencies, and it cannot be directly compared with just an amount. Let’s dive right int...1 min read·blog.mayankjani.comOct 7, 2024
Data Transfer Objects (DTOs) in PHPDTOs allows you to pass data between classes. This is especially useful when interacting with 3rd party APIs4 min read·blog.mayankjani.comSep 13, 2024
How to reuse database queries in LaravelOften in database heavy applications in Laravel, we have numerous database queries to fetch various types of data. You might use them in controllers, services, console commands, admins, and other pieces of code. Often these queries are not organized ...3 min read·blog.mayankjani.comSep 11, 2024