Rishni Meemeduma·Mar 31, 2025Optimizing Subqueries in Laravel: An Efficient Approach Using addSelectWith method involves leveraging Eloquent relationships to load related data. By using with('logins'), you are preloading the logins…
Rishni Meemeduma·Feb 13, 2025How to Bulk Insert Data to database using LaravelWhat if we had a csv file with millions of records to import to the database using Laravel. There are four approaches we can take.
Rishni Meemeduma·Nov 18, 2024Polymorphic relationships in Laravel and their use casesIn software development, it’s common to encounter models that belong to multiple entities. A great example is comments. Take an application…