Are you connecting to the right database?
Make sure you haven't accidentally put in the name of a DB whose migrations have alrady run.
It might be a simple little thing like that.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I encounter this weird issue where I cannot run any migration that has been created on Laravel
Basically What I did is :
.env for connection to database using user root
php artisan make:migration create_table_category
php artisan migrate
Migration table create successfully, nothing to migrate. The database only have migrations table with no rows. Even the users table that comes with Laravel did not created in the databaseThe only way that I can run migration is to run migration command and specify the path completely with filename, but then still I cannot run any migration command like php artisan migrate:reset
This is the environment that I use to run Laravel using XAMPP
The details can also be found on this StackOverflow question
So I've found the solution. Basically, it's because of the directory of my Laravel Project.
My root project directory path is F:\Indra\Kerja\[1] Personal\Personal profile\web so my migration path is F:\Indra\Kerja\[1] Personal\Personal profile\web\database\migrations
Notice there's folder named [1] Personal, that's the culprit
I renamed my folder to Personal and voila the migration works normally.
You can see detailed answer on my original Stackoverflow question.
Please or to participate in this conversation.