id()->autoIncrement(); $table->string('agent')->nullable(); $table->string('client_ip',100)->nullable(); $table->string('username',100)->nullable(); $table->text('description')->nullable(); $table->bigInteger('customer_id')->default(0)->index(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { // Schema::table('log',function (Blueprint $table){ $table->dropForeign('customer_id'); $table->drop(); }); } };