Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace Wn\Generators\Commands; |
||
14 | public function handle() |
||
15 | { |
||
16 | $model = $this->argument('model'); |
||
17 | $name = $this->getSeederName($model); |
||
18 | $file = "./database/seeds/{$name}.php"; |
||
19 | |||
20 | $content = $this->getTemplate('seeder') |
||
21 | ->with([ |
||
22 | 'model' => $model, |
||
23 | 'name' => $name, |
||
24 | 'count' => $this->option('count') |
||
25 | ]) |
||
26 | ->get(); |
||
27 | |||
28 | |||
29 | $this->save($content, $file, $name); |
||
30 | } |
||
31 | |||
41 |