/** * Create the mapping file. * * @param $model */ private function writeMapping($model) { $path = $this->getMappingPath(); $file = pathinfo($this->creator->create($model, $path), PATHINFO_FILENAME); $this->comment($file . ' was created successfully'); }