July 5, 2020

How we solved the mystery of a mammoth size history table in MySQL database

While performing regular audit at my company, I noticed that one of the databases is using more disc space than expected. Once I drilled down to the table levels, it turned out that only a single...

Read

December 3, 2019

Automate repetitive tasks with Laravel Macro

Laravel macros are a way to extend Laravel core classes, without writing our own class. In other words, it allows us to add new methods to the core Laravel classes. In this discussion, we will look...

Read

October 20, 2019

Copy a directory recursively in php (using Standard PHP Library)

Last time, we discussed how to remove a non empty directory in php using Standard PHP Library (SPL). This time we will learn how to copy a directory recursively in php using SPL. By recursively, I...

Read

September 15, 2019

Remove a non empty directory in php (using Standard PHP Library)

There are lot of useful inbuilt functions that comes with PHP interpreter. One such function is rmdir which allows us to delete a folder/directory through php code. The documentation for...

Read