increments('id'); $table->integer('product_id')->nullable(); $table->integer('category_id')->nullable(); $table->text('title')->nullable(); $table->text('subtitle')->nullable(); $table->timestamp('start_date')->nullable(); $table->timestamp('end_date')->nullable(); $table->enum('type', ['percentage','amount'])->nullable(); $table->float('value')->nullable(); $table->text('image')->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('deals'); } }