Singleton routes for one-off resources in Laravel 9.x
December 7, 2022 — The way routes work in Laravel is that you define a route and then you define a controller action to handle the request.
A blog on PHP, JavaScript, and more
December 7, 2022 — The way routes work in Laravel is that you define a route and then you define a controller action to handle the request.
December 6, 2022 — If you’re a web developer, you might have come across a situation where you need to take a full-size screenshot of a website. For instance, you might want to take a screenshot of a website to show it to your client or your team members.
December 4, 2022 — PHP 7 introduced a lot of new features to the language. One of them is the ability to declare the type of a function argument and the type of value that a function returns. This is called type declaration.
November 30, 2022 — When you’re working with CSS, you often stumble upon a situation where you need to display a list of images with different heights.
November 29, 2022 — When you’re working with JavaScript, you often stumble upon a situation where you need to check certain conditions. And often, you would need a boolean value (true
or false
) or boolean expression to check for the condition.
November 27, 2022 — The release of PHP’s latest version, PHP 8.2, is just around the corner. On December 8, 2022 to be precise.
November 26, 2022 — I’ve been using Jekyll to power this blog for quite some time now. I quite like the simplicity of Jekyll. But there’s this one thing that I don’t like about it.
November 23, 2022 — I’ve been an ardent Linux user for quite some time now. Especially the Ubuntu flavor. And one of the things that I love about Ubuntu is that it’s very customizable.
November 22, 2022 — There are scenarios where you might want to track the value of an input field, especially the number inputs, and change the theming of the input field based on the value.
November 18, 2022 — Constants are a great way to define values that are not going to change. They are also a great way to define values that are going to be used in multiple places.