/** * Run the migrations. * * @return void */ public function up() { Schema::create('artist', function (Blueprint $table) { $table->increments('id_artist'); $table->string('name'); $table->string('description'); $table->string('image'); $table->string('tags'); }); $data = new Import(); $data->import("public/assets/artistes.csv", "artist"); }
/** * Run the migrations. * * @return void */ public function up() { Schema::create('concert', function (Blueprint $table) { $table->increments('id_concert'); $table->string('name_artist'); $table->string('place'); $table->string('address'); $table->string('city'); $table->dateTime('date'); $table->string('price'); //$table->foreign('name_artist') //->references('name')->on('artist'); }); $data = new Import(); $data->import("public/assets/concerts.csv", "concert"); }