chaiwei.hashnode.devOptimizing Laravel Eloquent QueriesRecently, I was working on a project where I identified that a significant number of database queries were being executed, leading to performance issues. Especially when dealing with relationships, one common performance issue developers face is the ...May 27, 2024·2 min read
chaiwei.hashnode.devLeveraging Forks in Your Projects: A Step-by-Step Guide1. Forking the Repository: Navigate to the GitHub repository of the package you wish to fork. Click on the "Fork" button in the top-right corner of the page. Choose your GitHub account as the destination for the fork. 2. Cloning Your Fork: On y...Mar 24, 2024·1 min read
chaiwei.hashnode.devInvalid datetime format caused by Daylight Saving TimeJust today, I encountered a strange error on my production server. SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '2024-03-10 02:49:20' for column 'updated_at' Looking at the SQL code, I couldn't identify anything unusual....Mar 10, 2024·2 min read
chaiwei.hashnode.devConfiguring Laravel Horizon with Cloudways Supervisor JobsWhile working with a client who hosts their Laravel applications on Cloudways, I encountered some limitations in the platform's control panel. There were certain features, such as different PHP versions for different applications, utilising Horizon f...Feb 26, 2024·3 min read
chaiwei.hashnode.devUpgrading Laravel Framework and PackagesSecuring your code is a journey, not just a destination. Keeping projects up-to-date with the latest features and security patches is essential for maintaining performance and safeguarding against vulnerabilities. As technology evolves, so do the th...Feb 23, 2024·4 min read