I am building a website with laravel 5. Laravel is using Composer as dependency management.
Whenever I run composer dump-autoload the autoload classes are generated. Unforatunately the path in two of these files are wrong.
I am using one Seed class and some migrations within laravel which is located in app/database/seeds respectivley app/database/migrations.
The generated paths to all classes (migrations, seeds) below the database folder is wrong. The path looks like $baseDir . '/atabase/migrations/2017_02_02_153131_create_cards_table.php' As you can see the "d" from "database" is missing.
As far as I know the autoload classes are defines in the composer.json file. But here it seems to be correct
"autoload": {
"classmap": [ "database" ]
The migration is working, but the seeds are not. When I do a search&replace and correct the path everything is fine unless I do composer dump-autoload
I am developing on a Windows 10 Machine with Laravel 5.4.8 and composer 1.3.2.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2l4GemW
via IFTTT
Aucun commentaire:
Enregistrer un commentaire