increments('id'); $table->integer('source_id')->nullable(); $table->string('source_type', 200)->nullable(); $table->double('amount', 50)->nullable(); $table->dateTime('start_at')->nullable(); $table->dateTime('expire_at')->nullable(); $table->string('slug', 100)->nullable(); $table->integer('user_id')->nullable(); $table->string('upload_folder', 100)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('discounts'); } }