increments('id'); $table->string('title', 255)->nullable(); $table->integer('district_id')->nullable(); $table->integer('city_id')->nullable(); $table->integer('type_id')->nullable(); $table->string('description', 255)->nullable(); $table->enum('property_status', ['rent','sale'])->nullable(); $table->decimal('area', 10,2)->nullable(); $table->integer('bedrooms')->nullable(); $table->integer('bathrooms')->nullable(); $table->date('build_at')->nullable(); $table->decimal('price', 10,2)->nullable(); $table->text('images')->nullable(); $table->enum('status', ['show','hide'])->nullable(); $table->string('slug', 255)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('properties'); } }