Existing PHP catches and bugs

I will keep updating this post as part of note whenever I find another catch and bug in PHP. I hope it can help beginner PHP developers (like me) out there to escape hours of confusion and stress .. 😅 PUT multipart/data bug As explained by this open bug (since 2011), when you submit a multipart/data…

Deploying Laravel 5.4 project in shared-hosting with no SSH

Despite lack of compact guides in the internet, deploying Laravel 5.4 project in cheap shared hosting (with no SSH support) is actually quite simple. The steps are: 1.  Import database to the shared hosting’s database using available tool such as phpMyAdmin 2. Upload the content of public directory in your Laravel project to public area…

Loopback automatic creation & modification timestamp

In certain cases, it’s convenience to have automatic creation & modification timestamp where system automatically records when and who create/update a record. So far, I find that the most efficient way to do this in Loopback is by utilizing hook feature. Based on the docs, there are 3 types of hooks provided by loopback based…