Override Fetch/XHR response in Chrome DevTools
September 17, 2023 — When you’re debugging a web application, you might want to override the response of a fetch
or XMLHttpRequest
request to test your application’s behavior in certain scenarios.
September 17, 2023 — When you’re debugging a web application, you might want to override the response of a fetch
or XMLHttpRequest
request to test your application’s behavior in certain scenarios.
September 15, 2023 — There are a lot of tools like ngrok that let you expose your local server to the internet. But did you know VS Code has just got this feature in the form of port forwarding so that you don’t need to install any third-party tool to do this anymore?
September 14, 2023 — Environment variables are tricky little things that we use in our Laravel applications to store sensitive information such as API keys, database credentials, and so on. And there are two ways to access them in your Laravel application.
September 14, 2023 — Laravel has all kinds of Artisan commands to let you generate boilerplate code for your application. For instance, you can generate a controller, model, migration, and so on using the Artisan command. But, there was no command to generate views in Laravel until now.
September 13, 2023 — There are some things that you never know you need until someone tells you about them. For instance, Christoph Rumpel recently shared a handy little setting in PhpStorm called Camel Humps which allows you to navigate through the camel-cased class/variable names using the arrow keys.
September 12, 2023 — Jeffery Way recently tweeted about how he wants a php artisan tail
command to see the real-time application logs in Laravel. And the replies to this tweet were quite interesting. People have shared their ways of tailing the Laravel log. So, I thought to compile them all in one place.
September 11, 2023 — Uploading images to your website is a common task. But, it’s also important to make sure that the images are optimized for the web. This includes resizing, cropping, compressing the images, and so on.
September 9, 2023 — Git hooks are scripts that run automatically every time a particular event occurs in a Git repository. They let you customize Git’s internal behavior and trigger customizable actions at key points in the development life cycle.
September 6, 2023 — Null is a special data type in PHP that represents a variable with no value. A variable is considered to be null if:
September 5, 2023 — The #[\Override]
attribute is a new attribute that will be introduced in PHP 8.3. It will be used to mark a method as overriding a parent method.