Category: Today I learned

I will dedicate this section of my website to ‘Today I Learned’ shorts. Whenever I learn something new in my day, I’ll publish it here for two main reasons:
1. It serves as documentation of the problems I’ve encountered, allowing me to revisit it when needed.
2. It helps someone, somewhere!

Handling Date Fields. A Common Pitfall

In my Laravel hobby project, I had a field called date_covered defined as a date type, with now() as the default value. However, when I needed to manipulate this field,…

Update GitHub Access Token Locally

When you are working on a local project and using a GitHub Access Token to push your code, you might face an issue when the token expires, and you forget…