@@ -19,7 +19,7 @@ |
||
| 19 | 19 | if (!count($indexFields)) { |
| 20 | 20 | throw new Exception("You must provide at least one field to an index"); |
| 21 | 21 | } |
| 22 | - $generator->createCode[] = '$table->index(["' . implode('", "', $indexFields) .'"]);'; |
|
| 22 | + $generator->createCode[] = '$table->index(["' . implode('", "', $indexFields) . '"]);'; |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | public static function processMigrationFieldDirective( |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | if (!count($indexFields)) { |
| 57 | 57 | throw new Exception("You must provide at least one field to an index on a model"); |
| 58 | 58 | } |
| 59 | - $generator->createCode[] = '$table->unique(["' . implode('", "', $indexFields) .'"]);'; |
|
| 59 | + $generator->createCode[] = '$table->unique(["' . implode('", "', $indexFields) . '"]);'; |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | public static function processMigrationFieldDirective( |