create() public method

Create a mapping file.
public create ( $model, $path ) : string
$model
$path
return string
Ejemplo n.º 1
0
 /**
  * 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');
 }