Animated Space Background using plain CSS
April 20, 2023 — Here’s a trippy animated space background that you can create using plain and old CSS. This is inspired by the Beyond the Gradient website.
A blog on PHP, JavaScript, and more
April 20, 2023 — Here’s a trippy animated space background that you can create using plain and old CSS. This is inspired by the Beyond the Gradient website.
April 18, 2023 — How many times does it happen to you where you have spun up a node server or a PHP server in your terminal and then you want to put it in the background so that you can do something else?
April 17, 2023 — There comes a time when you want to make some changes to an existing table. For instance, you want to change the data type of a column. So, in this case, you can modify the migration file of the table and then run the migration again using the artisan migrate:refresh
command like so.
April 14, 2023 — I have seen this ping animation on various websites where a circle expands and then contracts to its original size. It’s a pretty neat animation that represents a ping or a notification.
April 12, 2023 — Here’s a handy trick I recently discovered in VS Code that allows you to create non-existent files using the editor itself.
April 10, 2023 — Say you want to find out the number of orders placed in the last 6 months. You can do this in MySQL using the DATE_SUB()
function as follows.
April 7, 2023 — I don’t talk about this much but decided to let it out today. So, I have been suffering from pretty bad anxiety attacks for the past 10 months or so.
April 6, 2023 — When it comes to using a clean and consistent coding style across your Laravel project, the best way to do this is by using the Laravel Pint package. It’s a package that allows you to use the standard PSR coding style in your Laravel project.
April 4, 2023 — Sometimes, you come across a piece of code and you’re not sure what it does. You may spend a lot of time trying to understand it but you may not be able to grasp it completely. In such cases, you can use GitHub Copilot to get a code explanation.
March 31, 2023 — A HasMany
relationship in Laravel helps you to define a one-to-many relationship between two models. So, if you have a User
model and a Post
model, you can define a HasMany
relationship between them like so.