Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
63 | 6 | public function handle() |
|
64 | { |
||
65 | 6 | $source = __DIR__.'/../../database/migrations/audits.stub'; |
|
66 | |||
67 | 6 | $destination = $this->laravel['migration.creator']->create( |
|
68 | 6 | 'create_audits_table', |
|
69 | 6 | $this->laravel->databasePath().'/migrations' |
|
70 | ); |
||
71 | |||
72 | 6 | $this->files->copy($source, $destination); |
|
73 | |||
74 | 6 | $this->info('Migration created successfully!'); |
|
75 | |||
76 | 6 | $this->composer->dumpAutoloads(); |
|
77 | 6 | } |
|
79 |