| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 54 | protected function publishMigrations(): void |
||
| 55 | { |
||
| 56 | if (class_exists('CreateTranslationsTable')) { |
||
| 57 | return; |
||
| 58 | } |
||
| 59 | |||
| 60 | $timestamp = date('Y_m_d_His', time()); |
||
| 61 | |||
| 62 | $this->publishes([ |
||
| 63 | __DIR__.'/../migrations/create_translations_table.php.stub' => database_path("/migrations/{$timestamp}_create_translations_table.php"), |
||
| 64 | ], 'translator-migrations'); |
||
| 65 | } |
||
| 67 |