Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function create($name) |
||
17 | { |
||
18 | $seedDir = $this->config->getSeedDirectory(); |
||
19 | |||
20 | $this->makeDirectoryStructure([ |
||
21 | $this->config->getDatabaseDirectory(), |
||
22 | $seedDir, |
||
23 | ]); |
||
24 | |||
25 | $this->writeFile( |
||
26 | $path = $seedDir.$name.'.php', |
||
27 | $this->getStub($name) |
||
28 | ); |
||
29 | |||
30 | $this->output->writeInfo("Successfully created seeder {$name}."); |
||
31 | |||
32 | return $path; |
||
33 | } |
||
34 | |||
49 |