Patompong's Blog
Preg match with groupping
This page will show you how to use preg_match operation in PHP with named variable.
4 months ago
Login to mongo shell with authentication
This blog will show you how to login to mongo shell with the authenticated user.
4 months ago
Enable all error log in Laravel
I just got error 500 on my server with no log, the code below will print the error log to the log file.
4 months ago
Different between chunk() and cursor() on Builder
A snippet to easily demonstrate the differences between chunk() and cursor() when performed on Builder object.
1 year ago
How to use PurgeCSS to reduce Tailwind CSS size in Laravel
In this blog post, I'll show you the benefit of PurgeCSS. I'll use the real example of this blog and my profile page I just made. PurgeCSS can be used in any framework but I'll use Laravel in this example since it's what I use to create my 3 websites (profile, blog, and admin control panel).
1 year ago