Easily Learn Code

Base table or view not found: 1146 Table ‘.migrations’ doesn’t exist. migration table not found in Laravel


If you are migrating the Laravel database while running php artisan migrate then come this Base table or view not found: 1146 Table ‘.migrations’ doesn’t exist or migration table not found in Laravel.

There are some reason.

If you are forget to add correct database name on .env file

If you are switching local server xampp to laragon or Laragon to Xampp.

Migration not installed.

First Let’s check your all information correctly

  1. Correct Database Name on .env file.
  2. php artisan migrate:install.
  3. php artisan schema:dump.

If you run the php artisan schema:dump then reset all database schema and runs correctly.

at the last run

php artisan migrate

It’s done.

Leave a Reply