Level 104
Seems like you may have rune migrate:make command more than once for create_adresses_table. Check your migrations directory for duplicates.
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
i like to change my table to add libelle_code on table zoneinterventionsi have added on migration but when i make megration i have this erreurs
C:\xampp\htdocs\projet>php artisan migrate
PHP Fatal error: Cannot declare class CreateAdressesTable, because the name is already
in use in
C:\xampp\htdocs\projet\database\migrations18_04_03_090601_create_adresses_table
.php on line 37
In 2018_04_03_090601_create_adresses_table.php line 37:
Cannot declare class CreateAdressesTable, because the name is already in use
**migration table
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateZoneinterventionsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('zoneinterventions', function(Blueprint $table)
{
$table->increments('id');
$table->integer('code_postal');
$table->string('libelle_code');
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('zoneinterventions');
}
}
Seems like you may have rune migrate:make command more than once for create_adresses_table. Check your migrations directory for duplicates.
Please or to participate in this conversation.