Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Senither's avatar

Change Laravels migration table name

Hi there!

I've recently been working on a NodeJS application that uses http://knexjs.org/ for database management, my issue right now is that I'd like to build a Laravel website around my NodeJS app, but Laravel and Knex shares the same name for migrations, so my question is, is there any way to change the name of Laravels migration table?

Any help would be much appreciated!

0 likes
6 replies
abusalameh's avatar

do you mean to change the table name that maps migration files with database ?

Senither's avatar

Yeah, the migrations table that's used to map the migration files to the other migration tables.

abusalameh's avatar

yes it's possible I think , I'm searching for you how to set a different table name , I'm exploring the migration classes :D

kubalicious's avatar
Level 8

You should just need to change the migrations key in your Database config file.

4 likes
abusalameh's avatar

go to config --> database.php -->

search for migrations -->

change the value to whatever you want

1 like
Senither's avatar

Whelp, turns out I'm blind, thanks for the help, just ran my migrations and it works fine^^

Thanks kubalicious!

2 likes

Please or to participate in this conversation.