Closed Sushma-Mercantile closed 1 month ago
It's because of the migration configuration in the database config file: database.migrations.update_date_on_publish
'migrations' => [
'table' => 'migrations',
'update_date_on_publish' => true,
],
Maybe it should be false by default.
Thank you. This solved the issue for me, it was true by default!
Sanctum Version
4.0.2
Laravel Version
11
PHP Version
8.2.12
Database Driver & Version
No response
Description
In a Laravel project that uses Sanctum, when I run php artisan vendor:publish, it keeps creating fresh migration files for the personal access token table. This results in multiple migration files for the same table that leads to conflict while running migration.
Also, I found the previous methods to ignoreMigrations is also removed and used publishesMigrations instead. ignoreMigrations would have prevented repeated creation of migration.
Steps To Reproduce