Latest Posts

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...
Read Article
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 "...
Read Article
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...
Read Article
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...
Read Article
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...
Read Article
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....
Read Article
If you are altering a table in your MySQL to add foreign key constraint, and receiving the following error ERROR 1215 (HY000): Cannot add foreign key constraint This error is very general and do...
Read Article
In this short post, lets see how simple it is to vertically align content inside a DIV. Here is a nice little DIV in my bootstrap 5 with a little of example content. <div id="example-div" class...
Read Article
In Laravel Validation if you mark some request parameters to be having validation other than required i.e. email, numeric, digits, url etc. Even if the field is not set as required Laravel will compla...
Read Article
In this short post I will demonstrate how you can utilize an error directive in the Laravel blade component to show an error message just below the input field for which the validation failed. &nbs...
Read Article