Blog

Insights, tutorials, and thoughts on web development and technology.

Hosting Laravel Project to DigitalOcean Using Cloudways

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 Cloudways. For this demonstration I have created a dummy Laravel project with the latest ve...

Apr 30, 2021 · Tushar
Password and Confirm Password Validation in Laravel

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 and the user would never know if they made a typing mistake while filling out the password....

Apr 20, 2021 · Tushar
Fix : MYSQL Cannot Add Foreign Key Constraint

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 1215 (HY000): Cannot add foreign key constraint This error is very general and do...

Apr 15, 2021 · Tushar
Laravel : Do Not Validate if the field is not marked required

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, url etc. Even if the field is not set as required Laravel will compla...

Mar 28, 2021 · Tushar
How to show Error message below input field Laravel Blade

How to show Error message below input field Laravel Blade

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...

Mar 23, 2021 · Tushar