How to perform migration rollback in laravel

As we know that laravel migration provides very simple way to create database table structure. We need to create migration file and write table structure then migrate that migration. Sometimes we need to rollback that migration. So here we will discuss about the migration rollback in laravel. We can run the rollback artisan command to rollback on a… Read More »

How to migrate single migration in laravel

Sometimes while working on a laravel application, we just need to migrate only single or specific migration. If we run normal migrate command it will migrate all the migrations written in the application. Here i will let you know to migrate single migration in laravel. Migrations play very important role for aplication’s database structure. We just need to… Read More »

Laravel create model migration and controller in a single command

Hello guys, sometimes while working on the large application, we need to create some very small modules like simple CRUD. So here in this article i will let you know laravel create model migration and controller in a single command. We will run a single artisan command to create model. migration and controller. We can also create resource… Read More »

How to fix Laravel PDOException Could Not Find Driver error

While working on the laravel application sometimes we got an error like PDOException Could Not Find Driver error. Here, we will discuss about the solution to fix “could not find driver” or after artisan migration running you got error “Class ‘Doctrine\\DBAL\\Driver\\PDOMySql\\Driver’ not found”. Solution 1: If you do not have mysql/postgresql php module installed in your system If… Read More »

How to add column in laravel existing table through migration

While working on the laravel application, we create migration file to create tables in the database. And after migrating these migrations if we need to add columns in the table through migration then we will also need to create migration to new column  in laravel existing table. So let’s see how can we create migration file for adding… Read More »

How to load gravatar image in laravel using laravel-gravatar package

Gravatar is a graphical representation of a user. We usually see an image icon or dummy image in the comments of users on the websites. These images are known as gravatar. So here, We are going to see how can we implement or load gravatar image in laravel. Here, in this tutorial, we will use thomaswelton/laravel-gravatar package to load… Read More »