kitloong / laravel-migrations-generator

Laravel Migrations Generator: Automatically generate your migrations from an existing database schema.
MIT License
2.43k stars 269 forks source link

Argument 1 passed to KitLoong\MigrationsGenerator\Setting::setPath() must be of the type string #184

Closed KonstantinKorepin closed 1 year ago

KonstantinKorepin commented 1 year ago

Hello!

When I run the command php artisan migrate:generate I get a message "Argument 1 passed to KitLoong\MigrationsGenerator\Setting::setPath() must be of the type string, null given, called in /home/kostya/server/regop.local/vendor/kitloong/laravel-migrations-generator/src/MigrateGenerateCommand.php on line 155"

Then I run php artisan migrate:generate --path=/app/database/migrations and I get Message " Argument 1 passed to KitLoong\MigrationsGenerator\Setting::setStubPath() must be of the type string, null given, called in /home/kostya/server/regop.local/vendor/kitloong/laravel-migrations-generator/src/MigrateGenerateCommand.php on line 193"

Why is this happening? What am I doing wrong? I want the migrations to go to the default folder database/migrations

Details:

kitloong commented 1 year ago

Hi @KonstantinKorepin I am sorry for being late.

Could you please try Migration Generator latest version 6.10.0?

I have no issue with php artisan migrate:generate --path=/app/database/migrations.

Just FYI, you should use app/ instead of /app/ to output to relative path.

KonstantinKorepin commented 1 year ago

Hi @kitloong !

Thank you very much! It's works!