`make:api:model` causes The "pivot" option does not exist.' message
fin artisan make:api:model MyModel
results in the error: 'The "pivot" option does not exist.'
fin artisan make:model MyModel
works fine
fin artisan make:api:controller --api -m MyModel MyModelController
works fine after asking if the model should be generated
Log
[stacktrace]
#0 /var/www/vendor/laravel/framework/src/Illuminate/Console/Concerns/InteractsWithIO.php(111): Symfony\\Component\\Console\\Input\\Input->getOption('pivot')
#1 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/ModelMakeCommand.php(176): Illuminate\\Console\\Command->option('pivot')
#2 /var/www/vendor/laravel/framework/src/Illuminate/Console/GeneratorCommand.php(282): Illuminate\\Foundation\\Console\\ModelMakeCommand->getStub()
#3 /var/www/vendor/laravel/framework/src/Illuminate/Console/GeneratorCommand.php(167): Illuminate\\Console\\GeneratorCommand->buildClass('App\\\\Models\\\
oun...')
#4 /var/www/vendor/phpsa/laravel-api-controller/src/Generator/ApiModelMakeCommand.php(23): Illuminate\\Console\\GeneratorCommand->handle()
#5 /var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Phpsa\\LaravelApiController\\Generator\\ApiModelMakeCommand->handle()
#6 /var/www/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#7 /var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#8 /var/www/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#9 /var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(653): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#10 /var/www/vendor/laravel/framework/src/Illuminate/Console/Command.php(171): Illuminate\\Container\\Container->call(Array)
#11 /var/www/vendor/symfony/console/Command/Command.php(291): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#12 /var/www/vendor/laravel/framework/src/Illuminate/Console/Command.php(156): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#13 /var/www/vendor/symfony/console/Application.php(989): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#14 /var/www/vendor/symfony/console/Application.php(299): Symfony\\Component\\Console\\Application->doRunCommand(Object(Phpsa\\LaravelApiController\\Generator\\ApiModelMakeCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#15 /var/www/vendor/symfony/console/Application.php(171): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#16 /var/www/vendor/laravel/framework/src/Illuminate/Console/Application.php(102): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#17 /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#18 /var/www/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#19 {main}
"}```