Divide div in two columns using Tailwindcss

Simple post to demonstrate how you can divide your container, page or a div into two columns / parts using…

tgugnani

Laravel upload file with original file name.

When using laravel filesystem to upload files it automatically assigns a filename to the file. If you want to use…

tgugnani

Cursor Pointer and other classes for Bootstrap 5

By default, Bootstrap 5 does not include classes for the CSS cursor properties. Here is how you can quickly add…

tgugnani

Generate Background Color for all Available Colors in Bootstrap 5

In Bootstrap 5 there are 12 different colours available to use, and each colour has 9 different shades you can…

tgugnani

Hosting Laravel Project to DigitalOcean Using Cloudways

This is a simple step-by-step guide on how to host your Laravel project to Digital Ocean with the help of…

tgugnani

Update / Delete associated related Models on Deletion in Laravel

Let's just quickly go over on how easy it is to update / delete the related models in your Laravel…

tgugnani

Password and Confirm Password Validation in Laravel

It's always a good idea to put a password confirmation field in your forms, since password is a masked field…

tgugnani

Fix : MYSQL Cannot Add Foreign Key Constraint

If you are altering a table in your MySQL to add foreign key constraint, and receiving the following error ERROR…

tgugnani

How to Align content vertically inside a div in Bootstrap 5

In this short post, lets see how simple it is to vertically align content inside a DIV. Here is a…

tgugnani

Laravel : Do Not Validate if the field is not marked required

In Laravel Validation if you mark some request parameters to be having validation other than required i.e. email, numeric, digits,…

tgugnani