php - The "--no-migration" option does not exist in laravel 5 -
i have installed laravel 5 , looking scaffolding when run command
php artisan make:scaffold tweet --schema="title:string:default('tweet #1'), body:text"
it giving exception "the "--no-migration" option not exist". have checked php artisan migrate --help
command , option not exists. can me please?
thanks.
the laralib/l5scaffold extension not have --no-migration
option. cannot prevent creating migration files via command.
currently don't see suitable way achieve desired behaviour. delete migration files afterwards.
or implement feature , create pull request repository. need change src/commands/scaffoldmakecommand.php
. here hints:
public function fire() { // ... // generate files if (!$this->option('no-migration')) { $this->makemigration(); } $this->makeseed(); // ... } protected function getoptions() { return [ ['schema', 's', inputoption::value_required, 'schema ...', null], ['form', 'f', inputoption::value_optional, 'use ...'], ['no-migration', 'm', inputoption::value_optional, 'don\'t create migration files.'] ]; }
Comments
Post a Comment