Using abbreviations for long CSS properties in VS Code
December 26, 2023 — So, I just learned about this neat little trick in VS Code where you can use abbreviations for long CSS properties and it will automatically expand them into their full form. This is a built-in feature in VS Code and you don’t need to install any extension for this.
Cool wiggly hover animation with CSS
December 21, 2023 — I saw this cool-looking wiggly hover animation on byline recently and found it quite fascinating. It looks like this.
Using Google's Gemini AI in PHP
December 20, 2023 — Generative AI is all the rage these days. Many big players (OpenAI, Meta, Microsoft) have already launched their own AI models that can generate images, text, and even code. So, it’s only natural that Google has also joined the bandwagon and launched its own AI model called Gemini recently.
Convert HTML to PDF using Headless Chrome in PHP
December 17, 2023 — There are times when you want to convert HTML to PDF. For instance, if you’re building a web application that allows users to generate PDFs of their invoices, you might want to convert the HTML of the invoice to PDF. Or if you’re building a blog, you might want to convert your blog posts to PDFs.
Detect leftovers like dd() and dump() in your Laravel codebase using Pest
December 14, 2023 — Debugging is an essential part of the development process. And when it comes to debugging in Laravel, the first thing that comes to mind is the dd()
and dump()
functions. These functions are used to dump the contents of a variable and stop the execution of the script.
Using arrays as a lightweight database in Laravel
December 12, 2023 — There are times when you don’t want to use a full-fledged database like MySQL or PostgreSQL for your application. For instance, if you’re building a small application that relies heavily on reading small subset of data, you might not want to setup a database table for something like that.
Magically add animations to your web apps with AutoAnimate
December 7, 2023 — I was watching this video on Laracasts where Jeffery was reviewing an open-source animation tool called AutoAnimate that can be used to add animations to your web apps.
Auto-generate maintenance mode secret in Laravel
December 6, 2023 — Maintenance mode is a feature in Laravel that allows you to put your application down for maintenance. It’s a great way to inform your users that the application is down for maintenance and will be back up soon.
Rendering a website inside GitHub Readme
December 3, 2023 — Recently, I came across Terkel’s GitHub profile readme and it blew my mind altogether. It’s a fully functional website with a menu, clickable links, GitHub contributions, and a lot more. And the best part is, all this is responsive as well!