bristol-su /
control
| 1 | <?php |
||
| 2 | |||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
| 3 | namespace BristolSU\ControlDB\Commands; |
||
| 4 | |||
| 5 | use Illuminate\Console\Command; |
||
| 6 | |||
| 7 | /** |
||
| 8 | * Seed the database |
||
| 9 | */ |
||
|
0 ignored issues
–
show
|
|||
| 10 | class SeedDatabase extends Command |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Signature for the command |
||
| 14 | * |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $signature = 'control:seed'; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Name for the commmand |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $name = 'Seed Control'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Description of the command |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $description = 'Seed the control database with fake data'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Handle the command execution |
||
| 35 | * |
||
| 36 | * Seed the database with fake data. |
||
| 37 | */ |
||
|
0 ignored issues
–
show
|
|||
| 38 | 1 | public function handle() |
|
| 39 | { |
||
| 40 | 1 | $this->call('db:seed', ['--class' => 'SeedControlDatabase']); |
|
| 41 | } |
||
| 42 | } |