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 does not show …
Author: tgugnani
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="bg-info …
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 complain about the …
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. As …
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 [App\Models\Post]. A mass …
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 …
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 …
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"> <select …
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. Create New Laravel …
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 wherein you have to perform …