Farshad TofighiUnderstanding Cache::lock in Laravel: A Solution to Race ConditionsCache::lock is a feature in Laravel that allows you to create distributed locks using Laravel’s cache system.Oct 16Oct 16
Farshad TofighiOptimizing Memory Usage in Laravel By Lazy CollectionsLazy Collections are a fantastic addition to Laravel. They allow you to handle large datasets without loading everything into memory at…Sep 28Sep 28
Farshad TofighiUnderstanding git cherry-pick: with Real-Life Examplesgit cherry-pick is a command that allows you to pick a specific commit from one branch and apply it to another branch.Sep 2Sep 2
Farshad TofighiUnderstanding MySQL Isolation Levels: A Friendly Guide with Laravel ExamplesEnsuring data consistency in multi-user databases is crucial, with race conditions being a major challenge to handle effectively.Aug 17Aug 17
Farshad TofighiAutomatic SMS Verification with WebOTP APIThe WebOTP API is a powerful tool that enables web applications to retrieve one-time passwords (OTPs) sent via SMS.Jul 151Jul 151
Farshad TofighiHow to write efficient queries using chunks in LaravelImagine you’re developing an application, and you need to perform a specific operation on a large number of user records. You know that…May 4May 4
Farshad TofighiWhat is Sharding in MongoDB?Nowadays we struggle with high volume and complexity of data, so it’s pretty important to develop a scalable project with high performance…Mar 6Mar 6
Farshad TofighiMongoDB indexing tutorial with examplesEven if you haven't worked with MongoDB, you probably know that this database is used to work with big data which gives you more speed than…Feb 9Feb 9
Farshad TofighiComprehensive guide for OAuth2 protocolProbably you heard many times about the OAuth2 protocol, especially in job interviews where they might ask you, “What is OAuth2?”.Jan 25Jan 25
Farshad TofighiMySQL indexing columns behind the sceneMySQL uses a B-Tree structure to operate indexing. When you index a column, it’s like organizing the data in that column into a treeJan 2Jan 2