'While creating model with factory, migration and resource controller for api inside new repository, conflict encounters in migration as below:

Used Command:

make:model Models/Test/TestApi -a

Error:

root@bb3433d4a92b:/var/www/nt-app-backend# php artisan make:model Models/Test/TestApi -a

Model created successfully.

Factory created successfully.

In ClassLoader.php line 571:

include(/var/www/nt-app-backend/vendor/composer/../../database/migrations/2022_05_06_151610_create_test_apis_table.php): failed to open stream: No such file or directory



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source