There are two ways to include Select2 plugin in your laravel project, one is via including the CDN and another is via NPM i.e. node package manager.
I find handling the dependencies via NPM to be a...
At times in your laravel validation, you may want input field to be validated only if the user filled in the field and you may want to skip the validation if there is field is left blank. This can be...
Using Carbon library it is very simple to get yesterday's and tomorrow's timestamp in your PHP or Laravel code.
You just need to import the Carbon library and call below functions
Carbon::to...
Simple post to demonstrate how you can divide your container, page or a div into two columns / parts using TailwindCSS.
Make your div into grid and use grid-col-2 to divide it into two parts....
When using laravel filesystem to upload files it automatically assigns a filename to the file. If you want to use the original filename or specify any other file name, you can do so by using storeAs m...
By default, Bootstrap 5 does not include classes for the CSS cursor properties. Here is how you can quickly add these properties which is similar to tailwindcss in your Bootstrap 5 library.
@import "...
In Bootstrap 5 there are 12 different colours available to use, and each colour has 9 different shades you can make use of.
However, you can not use all these colours directly in your CSS since acc...
This is a simple step-by-step guide on how to host your Laravel project to Digital Ocean with the help of Cloudways.
For this demonstration I have created a dummy Laravel project with the latest ve...
Let's just quickly go over on how easy it is to update / delete the related models in your Laravel Models using Model Events. Eloquent model dispatch several events based on the action performed on th...
It's always a good idea to put a password confirmation field in your forms, since password is a masked field and the user would never know if they made a typing mistake while filling out the password....