Posts by Author : tgugnani

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
If you are working with Laravel and you encounter the following error while creating a new record in the database using Laravel Models Add [_token] to fillable property to allow mass assignment on...
Read Article
I have been working on Laravel from the past 6 years and only used Xdebug a couple of times. This was when I was fairly new to the project I am working on, and I had to dig into the algorithm. Those d...
Read Article
If you are working with a huge Laravel project, at some point you will have a bloated web.php or api.php file with lots of routes, Although this works fine, but you may want to organize your route fil...
Read Article
If you are working on an HTML form and if it needs to send request to the server on the change of select box option. You can do it using a simple javascript. <form action="/someURL&quot...
Read Article
In this tutorial we will go over on how we can implement a multi-language website in Laravel using Laravel Localization and also create a simple language switcher to change the default language. 1. C...
Read Article
Compared to the previous version of Laravel where Bootstrap Framework was the default pre-installed frontend option. In the latest version there have been a lot of changes in the Laravel Framework whe...
Read Article