| 1 | <?php |
||
| 6 | class CreateTranslationTranslationsTable extends Migration |
||
|
|
|||
| 7 | { |
||
| 8 | /** |
||
| 9 | * Run the migrations. |
||
| 10 | * @return void |
||
| 11 | */ |
||
| 12 | public function up() |
||
| 13 | { |
||
| 14 | Schema::create('translation__translations', function (Blueprint $table) { |
||
| 15 | $table->engine = 'InnoDB'; |
||
| 16 | $table->increments('id'); |
||
| 17 | $table->string('key'); |
||
| 18 | $table->timestamps(); |
||
| 19 | $table->softDeletes(); |
||
| 20 | }); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Reverse the migrations. |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | public function down() |
||
| 31 | } |
||
| 32 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.