Optimizing 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 ...2 min read·chaiwei.hashnode.devMay 27, 2024
Leveraging 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...1 min read·chaiwei.hashnode.devMar 24, 2024
Invalid 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....2 min read·chaiwei.hashnode.devMar 10, 2024
Configuring 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...3 min read·chaiwei.hashnode.devFeb 26, 2024
Upgrading 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...4 min read·chaiwei.hashnode.devFeb 23, 2024