We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The rest of the parameters, for the reason of a better personalization for already existing structures, which are required to map to LUMEN.
Add:
Change:
The text was updated successfully, but these errors were encountered:
In wn/lumen-generators/src/Commands/ModelCommand.php, I modified the following:
In "$signature" var I add:
{--table= : Name of the table.} {--primary-key= : Name of the primary key.} {--incrementing= : Incrementing field.}
In "handle" function I modified: $name = $this->argument('name'); To $name = ucfirst($this->argument('name'));
In "getAdditional" function I modified:
protected function getAdditional() { $additional = ''; $additional = (!empty($this->option('table'))) ? ' protected $table = \''.$this->option('table').'\';' . PHP_EOL . PHP_EOL : ''; $additional .= (!empty($this->option('primary-key'))) ? ' protected $primaryKey = \''.$this->option('primary-key').'\';' . PHP_EOL . PHP_EOL : ''; $additional .= ($this->option('incrementing') == 'false') ? ' public $incrementing = false;' . PHP_EOL . PHP_EOL : ''; $additional .= ($this->option('timestamps') == 'false') ? ' public $timestamps = false;' . PHP_EOL . PHP_EOL : ''; return $additional; }
I do not know if this is the best way to do it, but it worked.
Sorry, something went wrong.
No branches or pull requests
The rest of the parameters, for the reason of a better personalization for already existing structures, which are required to map to LUMEN.
Add:
Change:
The text was updated successfully, but these errors were encountered: