bigIncrements('id'); $table->unsignedBigInteger('lelongbid_id')->unsigned(); $table->unsignedBigInteger('lelongbidmarhun_id')->unsigned()->nullable(); $table->unsignedBigInteger('photo_type')->unsigned(); $table->string('file_type'); $table->timestamps(); }); // once the table is created use a raw query to ALTER it and add the MEDIUMBLOB DB::statement("ALTER TABLE filemarhun ADD filename LONGBLOB"); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('filemarhun'); } }