| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | protected function fireModelEvent($event, $halt = true) |
||
| 47 | { |
||
| 48 | if ($event === 'booting') { |
||
| 49 | $table = $this->getTable(); |
||
| 50 | $schema = $this->schema(); |
||
| 51 | |||
| 52 | if ($schema->hasTable($table) === false) { |
||
| 53 | $schema->create($table, function (Blueprint $table) { |
||
| 54 | $this->createSchema($table); |
||
| 55 | }); |
||
| 56 | } |
||
| 57 | } |
||
| 58 | |||
| 59 | return parent::fireModelEvent($event, $halt); |
||
| 60 | } |
||
| 61 | } |
||
| 62 |