Tuesday, March 14, 2017

is laravel 5.4 running migrations from vendor folders now?

I have installed some packages that have migrations in their vendor folders, previously one of the packages I used published these migrations to migrations folder by running:

php artisan vendor:publish

Now I found alteast 2 packages that no longer published migrations when running this command, so I went into vendor folder and grabbed migration file and manually moved it and when I run

composer dump-autoload I got a warrning message from it that said: Warning:

Ambiguous class resolution, "CreateRevisionsTable" was found in both "$baseDir . '/database/migrations/2013_04_09_062329_create_revisions_table.php" and "C:\xampp\htdocs\example\vendor/venturecraft/revisionable/src/migrations\2013_04_09_062329_create_revisions_table.php", the first will be used.

why is this happening? Has something changed in 5.4?



via maxit

Advertisement