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