Cloning queries in Laravel
May 17, 2024 — Reusing database queries is a common practice to maintain clean, DRY (Don’t Repeat Yourself) code and ensure consistency across your application.
A blog on PHP, JavaScript, and more
May 17, 2024 — Reusing database queries is a common practice to maintain clean, DRY (Don’t Repeat Yourself) code and ensure consistency across your application.
May 16, 2024 — Sometimes, when working with some common elements, for instance, <ul>
, <a>
, or <div>
, you might add the class
attribute to some of them and then use that class to style them.
May 15, 2024 — When you want to search for something across your project in VS Code, the usual way is to open the Search panel and type in the search term, and VS Code will show all the instances of the term in your project.
May 10, 2024 — Scraping data on the web is a tiresome process when you do things manually. For instance, if you happen to do it using PHP, you need to do the following steps.
May 8, 2024 — If you are using Laravel’s HTTP client to call a third-party API, you might want to use the response as a collection to manipulate the data.
April 17, 2024 — Accessing or setting the value of a class property is comman task in object oriented programming. There are a few ways to do this in PHP. Let’s discuss them first.
April 16, 2024 — GitHub recently revoked my free access to GitHub Copilot. Essentially, since I’m an active open-source contributor, I was allowed to use it for free.
April 11, 2024 — AI has taken over our lives in ways we never imagined. From chatbots to voice assistants, AI has made its presence felt in almost every aspect of our digital lives.
April 3, 2024 — In the fast-paced world of JavaScript, sometimes you just need a quick solution without the hassle of setting up an entire project. Whether you’re tinkering, prototyping, or learning, the need for a lightweight tool to write JavaScript code becomes evident.
April 1, 2024 — When working with Laravel, you might need to manipulate data in various ways. For instance, when your data is a multi-dimensional array, you might need to filter, sort, or map the data to get the desired result.