public function create($name, $path) { $path = $this->getPath($name, $path); $stub = $this->getStub('model'); $this->files->put($path, $this->parseStub($stub, ['table' => $this->tableize($name), 'class' => $this->classify($name)])); return $path; }
/** * Write the model file to disk. * * @param string $name * @return string */ protected function writeModel($name) { $output = pathinfo($this->modeler->create($name, $this->getModelsPath()), PATHINFO_FILENAME); $this->line(" <fg=green;options=bold>create</fg=green;options=bold> {$output}"); }